Skip to main content

directories_integration

Creates, updates, deletes, gets or lists a directories_integration resource.

Overview​

Namedirectories_integration
TypeResource
Idokta.directories.directories_integration

Fields​

The following fields are returned by SELECT queries:

OK. Returns the group profile.

NameDatatypeDescription
idstringThe ID of the group (example: 00g19oiNHkbKFvNTX0g4)
profileobjectMap of requested attributes and their values

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_group_attribute_query_resultselectappInstanceId, groupId, resultId, subdomainRetrieves the results of the requested Active Directory (AD) group attributes using the resultId returned from the POST /api/v1/directories/{appInstanceId}/groups/{groupId}/query call.
If the operation has expired or if the resultId is invalid, returns a 404 status.
update_group_membershipexecappInstanceId, subdomain, id, parametersUpdates an Active Directory or LDAP group membership directly in the Active Directory or LDAP server.

You can add or remove users from groups based on their identity and access requirements. This ensures that changes made to user access in Okta are reflected in AD or LDAP. When you use Okta Access Certifications to revoke a user's membership to an AD or LDAP group, the removal is reflected in AD or LDAP.

See AD Bidirectional Group Management and LDAP Bidirectional Group Management.
submit_group_attribute_queryexecappInstanceId, groupId, subdomain, attributesSubmits a query search on the on-premises agent to asynchronously fetch specific Active Directory (AD) attributes for a group.
Returns a resultId that is used to poll for the results.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
appInstanceIdstringID of the AD instance in Okta (example: 00a1xucgTZFrziXg10g4)
groupIdstringID of the Okta group (example: 00g1xucgTZFrziXg10g4)
resultIdstringThe unique identifier returned by the initial POST request (POST /api/v1/directories/{appInstanceId}/groups/{groupId}/query)
subdomainstring(default: my-org)

SELECT examples​

Retrieves the results of the requested Active Directory (AD) group attributes using the resultId returned from the POST /api/v1/directories/{appInstanceId}/groups/{groupId}/query call.
If the operation has expired or if the resultId is invalid, returns a 404 status.

SELECT
id,
profile
FROM okta.directories.directories_integration
WHERE appInstanceId = '{{ appInstanceId }}' -- required
AND groupId = '{{ groupId }}' -- required
AND resultId = '{{ resultId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

Lifecycle Methods​

Updates an Active Directory or LDAP group membership directly in the Active Directory or LDAP server.

You can add or remove users from groups based on their identity and access requirements. This ensures that changes made to user access in Okta are reflected in AD or LDAP. When you use Okta Access Certifications to revoke a user's membership to an AD or LDAP group, the removal is reflected in AD or LDAP.

See AD Bidirectional Group Management and LDAP Bidirectional Group Management.

EXEC okta.directories.directories_integration.update_group_membership
@appInstanceId='{{ appInstanceId }}' --required,
@subdomain='{{ subdomain }}' --required
@@json=
'{
"id": "{{ id }}",
"parameters": "{{ parameters }}"
}'
;