Password for Azure AD User

81 views Asked by At

I am using Graph API to read user information from Azure AD. I am getting all the user information in the response except the password. Is there anyway I can get that? I am calling this API. (Reference)

https://graph.windows.net/myorganization/users/{user_id}?api-version

1

There are 1 answers

1
Shawn Tabrizi On BEST ANSWER

As noted in the Graph API References:

The passwordProfile property always returns null. This is to prevent the user’s password from being displayed. You can reset the user’s password by updating the passwordProfile property.

If you are looking to have someone authenticate to your service using their AAD Account, you should either use Federation to have your authentication provider trust the AAD authentication provider, or you can even register your application in our system, and use AAD as your authentication provider.

I hope this helps!