Extending directory objects


 

 

image

see https://github.com/AzureADSamples/WebApp-GraphAPI-OrgChart-DotNet

Lets create the values noted above for our mobile azure site – an app already registered in our AAD tenant.

 

 

so app, better known as https://friday345.azure-mobile.net/login/aad

has from azure portal:

client id = 6a4cb16d-329a-4402-a1de-7c53b816c2ae

appsecret = VqTpOe4NOsYXPlCczaCLcRIO9RLfD7A/Yvf8Qqeqb/s=

image

we also grant our app lots of permissions

image

From graph explorer, we login using our directory name

image

and I think the objectid we want is that marked, above:

“objectId”: “3c7ff095-3ee8-4988-894c-79785074a26d”,

(“appId”: “6a4cb16d-329a-4402-a1de-7c53b816c2ae”)

In the code, this all becomes

 

image

 

Now what?

since we are using a real domain (not netmagic.onmicrosoft.com), our main admin user is support170@rapmlsqa.com (vs the assumed admin@rapmlsqa.com which doesn’t exist.)

image

We see the graph code get our user.

imageimage

image

https://graph.windows.net/rapmlsqa.com/users/support170@rapmlsqa.com?api-version=1.21-preview

Advertisements

About home_pw@msn.com

Computer Programmer who often does network administration with focus on security servers. Very strong in Microsoft Azure cloud!
This entry was posted in AAD. Bookmark the permalink.