Skip to main content

app_management_policies

Creates, updates, deletes, gets or lists an app_management_policies resource.

Overview​

Nameapp_management_policies
TypeResource
Identra_id.applications.app_management_policies

Fields​

The following fields are returned by SELECT queries:

Retrieved collection

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
appliesToarrayCollection of applications and service principals to which the policy is applied.
deletedDateTimestring (date-time)Date and time when this object was deleted. Always null when the object hasn't been deleted. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
descriptionstringDescription for this policy. Required.
displayNamestringDisplay name for this policy. Required.
isEnabledbooleanDenotes whether the policy is enabled.
restrictionsRestrictions that apply to an application or service principal object.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectapplication_idThe appManagementPolicy applied to this application.
add_refinsertapplication_idAssign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal.
remove_refdeleteapplication_id, app_management_policy_idIf-MatchRemove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting.
remove_ref_2deleteapplication_idIf-MatchRemove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting.

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
app_management_policy_idstringThe unique identifier of appManagementPolicy
application_idstringThe unique identifier of application
If-MatchstringETag

SELECT examples​

The appManagementPolicy applied to this application.

SELECT
id,
appliesTo,
deletedDateTime,
description,
displayName,
isEnabled,
restrictions
FROM entra_id.applications.app_management_policies
WHERE application_id = '{{ application_id }}' -- required
;

INSERT examples​

Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal.

INSERT INTO entra_id.applications.app_management_policies (
directoryObjectId,
application_id
)
SELECT
'{{ directoryObjectId }}',
'{{ application_id }}'
;

DELETE examples​

Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting.

DELETE FROM entra_id.applications.app_management_policies
WHERE application_id = '{{ application_id }}' --required
AND app_management_policy_id = '{{ app_management_policy_id }}' --required
AND If-Match = '{{ If-Match }}'
;