The purpose of this article is to provide a solution for groups claim to work for a specific application.
- Group claims
- Claims
- Custom authorization server
- Org authorization server
Adding group expressions in the default custom authorization server or a created custom authorization server in Security > API > Authorization Servers might affect other applications/clients, as it is shown in the following screenshot:
If it is needed for group claims to return groups for a specified application/client configured in the custom default authorization server or a custom-created authorization server, then use the following expression:
app.clientId == "0oaxxxxxxxx357" ? Groups.startsWith("OKTA", "", 100) : null
If using the org authorization server, then it is necessary to add the group claim in Applications > Applications > Sign On.
