Thank you for posting this in Microsoft Q&A.
Yes, it is possible to add group claims when configuring OpenID Connect. You can configure group claims in the optional claims section of the application manifest.
- In the portal, select Identity > Applications > App registrations > Select Application > Manifest.
- Enable group membership claims by changing
groupMembershipClaims
- Add the following JSON code to add group claims
"optionalClaims": {
"idToken": [
{
"name": "groups",
"source": null,
"essential": false,
"additionalProperties": []
}
],
"accessToken": [
{
"name": "groups",
"source": null,
"essential": false,
"additionalProperties": []
}
]
}
- Save the changes to the application manifest.
For more information you can find it here: https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-fed-group-claims#configure-the-microsoft-entra-application-registration-for-group-attributes
5.Obtain an ID token via an HTTP request, you will receive the group ID within the tokens.
https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols-oidc
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.