question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Different attributes for "user" and "contact" ressource are not properly supported

See original GitHub issue

A user resource has different attributes that a contact resource. When using the Users API (Global Address List), the Object Model should support slightly different attributes, e.g. a Contact has a businessAddress property, whereas a User object does not have a businessAddress property, but a streetAddress,postalCode,state, etc.

I would consider this a feature request.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
teamoocommented, Oct 23, 2019

I created a comparison of the attributes, maybe this helps when looking at this feature request.

User Resource Attributes Contact Resource Attributes attribute selected by default (user resource) implemented as of 2.0.2
assistantName
aboutMe
accountEnabled
ageGroup
assignedLicenses
assignedPlans
birthday birthday
businessAddress x
businessHomePage
businessPhones businessPhones x x
city
categories x
changeKey
children
companyName companyName x
consentProvidedForMinor
country
createdDateTime createdDateTime x
department department x
displayName displayName x x
employeeId
faxNumber
givenName givenName x x
hireDate
mail emailAddresses x x
fileAs
generation
homeAddress
homePhones x
id id x x
imAddresses imAddresses
interests
initials
isResourceAccount
jobTitle jobTitle x x
legalAgeGroupClassification
lastModifiedDateTime x
licenseAssignmentStates
manager
middleName
mailboxSettings
mailNickname
mobilePhone mobilePhone x x
mySite
nickName
officeLocation officeLocation x x
onPremisesDistinguishedName
onPremisesDomainName
onPremisesExtensionAttributes
onPremisesImmutableId
onPremisesLastSyncDateTime
onPremisesProvisioningErrors
onPremisesSamAccountName
onPremisesSecurityIdentifier
onPremisesSyncEnabled
onPremisesUserPrincipalName
otherAddress x
parentFolderId x
personalNotes
profession
spouseName
otherMails
passwordPolicies
passwordProfile
pastProjects
postalCode
preferredDataLocation
preferredLanguage x
preferredName
provisionedPlans
proxyAddresses
responsibilities
schools
showInAddressList
skills
signInSessionsValidFromDateTime
state
streetAddress
surname surname x x
usageLocation
userPrincipalName x x
userType
title x
yomiCompanyName
yomiGivenName
yomiSurname

All attributes of the contact resource are returned by default, whereas for the user resource, only those attributes marked are returned by default.

*mail attribute is of type String, whereas emailAddresses is of type EmailAddress collection

1reaction
janscascommented, Sep 19, 2019

This basically means that a User object must be created in address_book.py. The GlobalAddressList should then return Users instead of Contacts. This requires a lot of effort at the moment: creating the User, implementing the different methods (save method that knows what to update). Etc.

Basically we must replicate the Contact object with the properties, endpoints, etc from Users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

One or more objects don't sync when using the Azure Active ...
Describes an issue in which one or more AD DS object attributes don't sync to Azure AD through the Azure Active Directory Sync...
Read more >
Attribute mappings - AWS IAM Identity Center (successor to ...
Attribute mappings are used to map attribute types that exist in IAM Identity Center with like attributes in an AWS Managed Microsoft AD...
Read more >
Managing User Attributes in Workspace ONE Access
The list of user attributes is managed from the Settings User ... For example, address, Address, and ADDRESS are different attributes.
Read more >
How to set up office 365 custom attributes & use them in email ...
create custom address lists based on custom attributes, ... Another method – using the Exchange admin center – will not get its separate...
Read more >
HTML attribute: rel - HTML: HyperText Markup Language | MDN
Gives the address of the pingback server that handles pingbacks to the current document. External Resource, Not allowed, Not allowed. preconnect ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found