- Assign a group to an application's offline mode policy
Assigns groups to the offline mode policy for a specific application in Access Gateway, by applicationId. Users who are in the groups that are assigned to the offline mode application policy can sign in to the application when offline mode is enabled. Users who aren't in the assigned groups are blocked from signing in when offline mode is enabled.
Before you assign groups to the application, ensure that the groups exist in your LDAP or AD directory. If your groups originate in Okta, sync them to your LDAP or AD server using the Okta LDAP agent or the Okta AD agent. After syncing the groups, create the offline mode directory. After you configure the offline mode directory, your groups are available to assign to the offline mode policy.
Note: If you're using an LDAP user directory, you don't have the
Everyonegroup, by default. However, theAssign a group to an application's offline mode policyendpoint allows you to still passEveryonein the payload to assign all users to the offline mode policy.
Note: This endpoint is no longer supported as of Access Gateway version 2026.09.1 and returns an HTTP 405 error. To manage offline mode policies, use the offline mode access policy endpoints instead.
- https://oag.domain.tldhttps://oag.domain.tld/api/v2/apps/{applicationId}/offline-mode/group-policy
curl -i -X PUT \
'https://oag.domain.tld/api/v2/apps/{applicationId}/offline-mode/group-policy' \
-H 'Content-Type: application/json' \
-d '{
"groups": [
{
"name": "Admins"
},
{
"name": "Developers"
}
]
}'