4
votes

I need to access custom properties on the user object via the graph api. Currently the documentation shows the properties that can be accessed in the "Update User" section of the v1.0: http://graph.microsoft.io/docs/api-reference/v1.0/api/user_update . I'm using this call to get the current logged in user and properties, but I can't seem to get any custom properties to work:

https://graph.microsoft.com/v1.0/me?$select=aboutMe,birthday,city,country,department,displayName,givenName,hireDate,interests,jobTitle,mobilePhone,officeLocation,pastProjects,postalCode,preferredLanguage,preferredName,responsibilities,schools,skills,state,streetAddress,surname,usageLocation,userPrincipalName,userType

I checked on one of our custom properties that maps back to RefinableString23, but that doesn't seem to want to work. Does anyone know if it's even possible to access custom properties and if so what I may be doing wrong.

1
How did you define the custom property that maps to RefinableString23? For the user entity type MS Graph allows to access custom properties defined in the Azure Active Directory (see blogs.msdn.com/b/aadgraphteam/archive/2014/03/06/…).Marek Rycharski
Not sure how it was mapped as I didn't create it but I will reach out to the team that did and see what answer I can get from them.user3768760
Did you e er get this working?idealbrandon

1 Answers

3
votes

As well as the extensions that are possible on messages, events and contacts, you can also extend entities such as users and groups through Azure AD, as Marek was suggesting (link to more up to date doc is here: https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-directory-schema-extensions).

Viewing/updating those extension property values is possible through MS Graph API. Microsoft Graph does not expose a way to register new extensions yet - for that you would still need to use Azure AD Graph API.

Hope this helps,