Forum Discussion
How to get a user P.O. Box from Active directory using Graph API
Unfortunately, this is not one of the attributes that get synchronized. In fact, there is no matching attribute at all on the user resource, with the closes one being PostalCode. You will have to either create a custom attribute or populate this value as part of some other existing one. Once the data is stamped on some property on the user object, you can expose it by customizing the profile card: https://office365itpros.com/2023/11/15/user-profile-card-sdk/
VasilMichevok thanks for the reply, but what is the value i got from this endpoint:-
https://graph.microsoft.com/beta/users/<useremail>/profile/
I got a PostOfficeBox , but it is null:-
"postOfficeBox": null,
- VasilMichevApr 10, 2025MVP
That's a company-level property, not user-one.
- johnjohn-PeterApr 10, 2025Iron Contributor
VasilMichevThanks again for the reply... so you mean this property :-
is actually set once for the whole organization? or you mean the one been retrieved from the Graph api which have null value? Thanks