0

I would like to obtain the sub (NameIdentifier) of a user for an AD FS application in order to allow him to identify in an application's user table.

https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokens#using-the-id_token

This is completely On-Premises set up.

0

From memory, its returned in the id_token but you can always get it via the ADFS userinfo endpoint.

This always returns the subject claim as specified in the OpenID standards.

2
  • I was looking for a simple way like Get-ADUser with Powershell to add new users sub to the users table in the application. If not, is there a way 'easily' consume the ADFS userinfo endpoint as an admin? – carraua Jan 29 '20 at 8:14
  • stackoverflow.com/q/42131776/9922 – rbrayb Jan 29 '20 at 17:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.