Skip to main content

push_mappings

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

Overview

Namepush_mappings
TypeResource
Idokta.apps.push_mappings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the group push mapping
_linksobjectDiscoverable resources related to the group push mapping
appConfigobjectAdditional app configuration for group push mappings. Currently only required for Active Directory.
createdstring (date-time)Timestamp when the group push mapping was created
errorSummarystringThe error message summary if the latest push failed
lastPushstring (date-time)Timestamp when the group push mapping was pushed
lastUpdatedstring (date-time)Timestamp when the group push mapping was last updated
sourceGroupIdstringThe ID of the source group for the group push mapping
statusstringThe status of the group push mapping
targetGroupIdstringThe ID of the target group for the group push mapping

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_group_push_mappingsselectsubdomainafter, limit, lastUpdated, sourceGroupId, statusLists all group push mappings with pagination support
get_group_push_mappingselectsubdomainRetrieves a group push mapping by ID
create_group_push_mappinginsertsubdomain, data__sourceGroupIdCreates or links a group push mapping.

Note: Either targetGroupId or targetGroupName must be provided, but not both. If targetGroupId is provided, it links to an existing group. If targetGroupName is provided, it creates a new group.
update_group_push_mappingupdatesubdomain, data__statusUpdates the status of a group push mapping
delete_group_push_mappingdeletedeleteTargetGroup, subdomainDeletes a specific group push mapping. The group push mapping must be in an INACTIVE state.

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
deleteTargetGroupbooleanIf set to true, the target group is also deleted. If set to false, the target group isn't deleted.
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)
afterstringSpecifies the pagination cursor for the next page of mappings
lastUpdatedstringFilters group push mappings by last updated date. The lastUpdated parameter supports the following format: YYYY-MM-DDTHH:mm:ssZ. This filters mappings updated on or after the specified date and time in UTC. If you don't specify a value, all group push mappings are returned.
limitinteger (int32)Specifies the number of results returned
sourceGroupIdstringFilters group push mappings by source group ID. If you don't specify a value, all group push mappings are returned.
statusstringFilters group push mappings by status. If you don't specify a value, all group push mappings are returned.

SELECT examples

Lists all group push mappings with pagination support

SELECT
id,
_links,
appConfig,
created,
errorSummary,
lastPush,
lastUpdated,
sourceGroupId,
status,
targetGroupId
FROM okta.apps.push_mappings
WHERE subdomain = '{{ subdomain }}' -- required
AND after = '{{ after }}'
AND limit = '{{ limit }}'
AND lastUpdated = '{{ lastUpdated }}'
AND sourceGroupId = '{{ sourceGroupId }}'
AND status = '{{ status }}';

INSERT examples

Creates or links a group push mapping.

Note: Either targetGroupId or targetGroupName must be provided, but not both. If targetGroupId is provided, it links to an existing group. If targetGroupName is provided, it creates a new group.

INSERT INTO okta.apps.push_mappings (
data__appConfig,
data__sourceGroupId,
data__status,
data__targetGroupId,
data__targetGroupName,
subdomain
)
SELECT
'{{ appConfig }}',
'{{ sourceGroupId }}' --required,
'{{ status }}',
'{{ targetGroupId }}',
'{{ targetGroupName }}',
'{{ subdomain }}'
RETURNING
id,
_links,
appConfig,
created,
errorSummary,
lastPush,
lastUpdated,
sourceGroupId,
status,
targetGroupId
;

UPDATE examples

Updates the status of a group push mapping

UPDATE okta.apps.push_mappings
SET
data__status = '{{ status }}'
WHERE
subdomain = '{{ subdomain }}' --required
AND data__status = '{{ status }}' --required
RETURNING
id,
_links,
appConfig,
created,
errorSummary,
lastPush,
lastUpdated,
sourceGroupId,
status,
targetGroupId;

DELETE examples

Deletes a specific group push mapping. The group push mapping must be in an INACTIVE state.

DELETE FROM okta.apps.push_mappings
WHERE deleteTargetGroup = '{{ deleteTargetGroup }}' --required
AND subdomain = '{{ subdomain }}' --required;