Get unique id on endpoint /userinfo

I need to get a unique ID of a user.

On endpoint /userinfo : in responses there is a property “sub” => is it the unique ID of a user ?

Yes exactly, the subject claim is the unique identifier for the Okta user in your tenant:

https://developer.okta.com/docs/reference/api/oidc/#response-example-success-5

1 Like