diff --git a/docs/kratos/social-signin/20_microsoft.mdx b/docs/kratos/social-signin/20_microsoft.mdx index 634471904..4d1d6e250 100644 --- a/docs/kratos/social-signin/20_microsoft.mdx +++ b/docs/kratos/social-signin/20_microsoft.mdx @@ -222,9 +222,13 @@ By default, Microsoft uses the identifier taken from the `sub` field of OIDC `id the standard OIDC `/userinfo` endpoint. However, some systems use the `id` field returned by the `https://graph.microsoft.com/v1.0/me` endpoint as a subject identifier. -To make migrating such systems to the Ory easier, you can use the identifier obtained from the `me` endpoint. +Others use the `oid` (Object ID) to identify users across different services. -To do that, add the `subject_source` field set to `me` to the social sign-in provider config. Use Ory CLI: +To make migrating such systems to Ory easier, you can use the identifier obtained from the `me` endpoint and the `oid` field. + +### Example + +Add the `subject_source` field set to `me` to the social sign-in provider config. Use the Ory CLI: 1. Download the Ory Identities config from your project and save it to a file: @@ -246,7 +250,7 @@ To do that, add the `subject_source` field set to `me` to the social sign-in pro - id: microsoft (...) // highlight-start - subject_source: me + subject_source: me # or oid # or # subject_source: userinfo scope: