Property ScopeRequiredGroups
Group-membership gate for selected OAuth scopes. Maps
scopeName → groupName. When a user-bound token request
(authorization_code, password, device_code, or a refresh_token derived from
these) requests one of the listed scopes, the OpenIddict pipeline rejects the
request with error=access_denied unless the authenticated user is a
(non-expired) member of the required group.
The client_credentials grant is intentionally unaffected — it has no
user identity, so the existing scp:{scope} permission on the
application is the authoritative gate for that flow.
Typical bootstrap configuration:
{ ["identity:manage"] = "identity-admins" } — restricts the
management scope to members of the admin group.
Default: empty (no scope restrictions).
public Dictionary<string, string> ScopeRequiredGroups { get; set; }