Assign or unassign directories for applications

Assigns directories to applications, creating an application directory association. To unassign directories in bulk, set the method query parameter to DELETE and send the unassign request body with the association uuid_url values in deleted_objects. Unassigning removes the association and the application's group associations for that directory's groups. It doesn't delete the application, the directory, or the groups. Unassign requests are all-or-nothing: if any unassignment fails, the request makes no changes.

The assign request creates one association for each application and directory pair, and responds with an array of those associations. Assigning a non-SAML directory that's already assigned returns the existing association, and an enable_mfa value in the request overwrites the existing value. If an assign request fails, no pairs are assigned, except when a directory uuid_url doesn't match a directory. In that case the response is a 400 error, but other pairs in the request can stay assigned. Application uuid_url values that don't match an application are ignored.

The request returns a 400 error if you assign a SAML directory to an application that has a cloud directory or an enterprise directory, such as Active Directory or LDAP. It also returns a 400 error if you assign any directory to an application that already has a SAML directory, if the application uses a device authentication IdP, or if the application has a manual configuration override and is deployed. An unassign request also returns a 400 error if an association doesn't exist or if the directory is used in a group-based path rewrite rule.

Query Params
string
required

The Akamai contract identifier for your Enterprise Application Access product.

string
enum

Enum Setting this to DELETE unassigns directories from applications in bulk. Provide a deleted_objects array in the request body with the application directory association uuid_url values to remove.

Allowed:
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params

The directories to assign to applications. Use this request body when you don't set the method parameter.

data
array of objects
required
length ≥ 1

Application directory details. The request assigns every directory to every application listed in the same element.

data*
apps
array of strings
required
length ≥ 1

The uuid_url values of the applications to assign the directories to.

apps*
directories
array
required
length ≥ 1

The directories to assign. Each field is either a directory object or the directory's uuid_url.

directories*
string
enum
Defaults to inherit

Enables multifactor authentication. Either enable or inherit to use the setting inherited from the application or directory. If you omit this, the assignment uses inherit.

Allowed:
string
required

The unique ID of the directory.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json
application/problem+json