What are scopes in openid

Shrikant Bhagwat 81 Reputation points
2025-03-16T22:35:18.1433333+00:00

APP1

What are scopes in openid. Does it include email & profile scope ?

app_displayname": "Apache OAuth-OIDC App",

"appid": "fb74eebd-2ec6-47aa-8387-57c8c39254db",

"appidacr": "1",

"family_name": "Bhagwat1",

"given_name": "Shrikant1",

"idtyp": "user",

"ipaddr": "141.214.17.252",

"name": "Shrikant1 Bhagwat1",

"oid": "5ce5ffdc-bb17-4bd4-a0d6-b85991873fed",

"platf": "3",

"puid": "100320044D66E733",

"rh": "1.AVAAjI3VxHBXmU2gDbQLcyseQQMAAAAAAAAAwAAAAAAAAABQABRQAA.",

"scp": "openid profile email",

"sid": "00303fa9-0205-ff1e-ed9f-7878bfef1d32",

"sub": "S_2mAURgePvmoj-sdgvTb_MWUBbdwIxWuuR65Oclb2o",

"tenant_region_scope": "NA",

"tid": "c4d58d8c-5770-4d99-a00d-b40b732b1e41",

"unique_name": "******@bhagwatsaz.net",

"upn": "******@bhagwatsaz.net",

"uti": "JGRInwt7YUixXyNz1nlJAA",

"ver": "1.0",

"wids": [

"b79fbf4d-3ef9-4689-8143-76b194e85509"

],

"xms_ftd": "lkLWnevrYwGyLNQhiooNE4tUx6oxoaXCykt5SVGxQOA",

"xms_idrel": "30 1",

"xms_st": {

"sub": "IiBvpyvj0nI1_QLn3DGE8wT8Yv7f3ICN1zRqXaOv8WA"

},

"xms_tcdt": 1625580930

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Answer accepted by question author
  1. Marcin Policht 68,535 Reputation points MVP Volunteer Moderator
    2025-03-16T22:38:35.51+00:00

    Scopes define what user information an application can request from an identity provider. The "openid" scope is mandatory in OIDC and allows authentication but does not include user profile details by itself.

    From your provided data, the "scp" (scope) field includes "openid profile email", meaning that:

    • openid: Grants permission to authenticate the user and receive their sub (subject identifier).
    • profile: Allows access to basic user profile information such as name, family_name, given_name, and unique_name.
    • email: Grants access to the user’s email address, which typically includes the email and email_verified claims.

    Since your scp field contains profile and email, your app can access both the user's profile details and email address along with authentication.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.