Skip to content

Assign a group to an application's offline mode policy
deprecated

Request

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 Everyone group, by default. However, the Assign a group to an application's offline mode policy endpoint allows you to still pass Everyone in 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.

Path
applicationIdstring, (uuid)required

Identifier of the application

Bodyapplication/jsonrequired
groupsArray of objectsrequired

Array of group objects

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"
      }
    ]
  }'

Responses

Application Offline mode group policy updated successfully

Bodyapplication/json
groupsArray of objectsrequired

Array of group objects

Response
{ "groups": [ { … }, { … } ] }