Forum Discussion
Find DeviceDetail for the currently logged in user
Here's a screenshot:
Hmm, interesting, none of that's in the token I have (it's actually a token acquired by a Sharepoint online webpart, but it's just a request to login.microsoftonline.com/.../oauth2/v2.0/authorize which sends back a page that redirects to https://<tenant>.sharepoint.com/_forms/spfxsinglesignon.aspx#access_token=<token>). This is all it has:
"iss": "https://sts.windows.net/c1fd1e38-<tenant-id>/",
"iat": 1706077938,
"nbf": 1706077938,
"exp": 1706083137,
"acr": "1",
"aio": "ATQAy/...",
"amr": [
"pwd"
],
"appid": "d382a6b7-<not-sure?>",
"appidacr": "0",
"family_name": "User",
"given_name": "Test",
"ipaddr": "48.xxx.yy.zzz",
"name": "Test User",
"oid": "e7af4b9b-...",
"rh": "0.AUIAOB79wc_...",
"scp": "custom-scope",
"sub": "acbBL4VK....",
"tid": "c1fd1e38-<tenant-id>",
"unique_name": "email address removed for privacy reasons",
"upn": "email address removed for privacy reasons",
"uti": "FLnAb1y...",
"ver": "1.0"
}