question

GaneshJagdale-6880 avatar image
0 Votes"
GaneshJagdale-6880 asked CarlZhao-MSFT commented

Is it possible to fetch issuerAssignedId along with other user properties?

Hi MS team,
I am using MS Graph API to manage users. I am using user email id as issuerAssignedId. I want to the same return in /Users/Id api.
Please suggest how I can get thta issuerAssignedId in Get user api call?
There is also mail property that I can re-used here but I have many exisitng users whoes email property is not set so I can not use that. Please help me here.
Thanks in advance!

Thanks,

azure-active-directorymicrosoft-graph-usersmicrosoft-graph-profile
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ShwetaMathur avatar image
0 Votes"
ShwetaMathur answered

Hi @GaneshJagdale-6880,

Thanks for reaching out.

I understand you are looking to get a user detail along with issuerAssignedId in response using Graph API.

As you are filtering based on identities, you must supply both issuer and issuerAssignedId in Graph API V1 endpoint as:

https://graph.microsoft.com/v1.0/users?$select=displayName,Identities&$filter=identities/any(c:c/issuerAssignedId eq 'xxx@gmail.com' and c/issuer eq 'xxx.onmicrosoft.com')

In the response, you will get issueAssignedId along with other user details which are mentioned in the query.

196463-image.png

Hope this will help.

Thanks,
Shweta


Please remember to "Accept Answer" if answer helped you.



image.png (82.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CarlZhao-MSFT avatar image
0 Votes"
CarlZhao-MSFT answered CarlZhao-MSFT commented

Hi @GaneshJagdale-6880

You can use the beta endpoint to get all attributes of the user, including the issuerAssignedId attribute.

196389-image.png

However, the beta endpoint can only be used in a test environment. If you want to use it in a production environment, then you need to switch to the V1.0 endpoint.

 https://graph.microsoft.com/v1.0/users/{id}?$select=identities,userPrincipalName,mail,displayName,id

Note: The value of issuerAssignedId must be the email address of the user account, not the user principal name (UPN).


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.








image.png (44.2 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @GaneshJagdale-6880 Would you please provide us with an update on the status of your issue?

0 Votes 0 ·

@GaneshJagdale-6880

Is there anything else I can help with regarding this issue?

You can comment us at any time and we will continue to follow up.

Thanks,
Carl Zhao

0 Votes 0 ·