Skip to main content

entitlement_management_access_packages

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

Overview

Nameentitlement_management_access_packages
TypeResource
Identra_id.identity_governance.entitlement_management_access_packages

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
accessPackagesIncompatibleWitharrayThe access packages that are incompatible with this package. Read-only.
assignmentPoliciesarrayRead-only. Nullable. Supports $expand.
catalogRequired when creating the access package. Read-only. Nullable.
createdDateTimestring (date-time)The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. (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])$)
descriptionstringThe description of the access package.
displayNamestringRequired. The display name of the access package. Supports $filter (eq, contains).
incompatibleAccessPackagesarrayThe access packages whose assigned users are ineligible to be assigned this access package.
incompatibleGroupsarrayThe groups whose members are ineligible to be assigned this access package.
isHiddenbooleanIndicates whether the access package is hidden from the requestor.
modifiedDateTimestring (date-time)The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. (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])$)
resourceRoleScopesarrayThe resource roles and scopes in this access package.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccess_package_idRetrieve the properties and relationships of an accessPackage object.
listselectRetrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs.
insertinsertCreate a new accessPackage object. The access package will be added to an existing accessPackageCatalog.
updateupdateaccess_package_idUpdate an existing accessPackage object to change one or more of its properties, such as the display name or description.
deletedeleteaccess_package_idIf-MatchDelete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment.
get_applicable_policy_requirementsexecaccess_package_idIn Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for.

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
access_package_idstringThe unique identifier of accessPackage
If-MatchstringETag

SELECT examples

Retrieve the properties and relationships of an accessPackage object.

SELECT
id,
accessPackagesIncompatibleWith,
assignmentPolicies,
catalog,
createdDateTime,
description,
displayName,
incompatibleAccessPackages,
incompatibleGroups,
isHidden,
modifiedDateTime,
resourceRoleScopes
FROM entra_id.identity_governance.entitlement_management_access_packages
WHERE access_package_id = '{{ access_package_id }}' -- required
;

INSERT examples

Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog.

INSERT INTO entra_id.identity_governance.entitlement_management_access_packages (
id,
createdDateTime,
description,
displayName,
isHidden,
modifiedDateTime,
accessPackagesIncompatibleWith,
assignmentPolicies,
catalog,
incompatibleAccessPackages,
incompatibleGroups,
resourceRoleScopes
)
SELECT
'{{ id }}',
'{{ createdDateTime }}',
'{{ description }}',
'{{ displayName }}',
{{ isHidden }},
'{{ modifiedDateTime }}',
'{{ accessPackagesIncompatibleWith }}',
'{{ assignmentPolicies }}',
'{{ catalog }}',
'{{ incompatibleAccessPackages }}',
'{{ incompatibleGroups }}',
'{{ resourceRoleScopes }}'
RETURNING
id,
accessPackagesIncompatibleWith,
assignmentPolicies,
catalog,
createdDateTime,
description,
displayName,
incompatibleAccessPackages,
incompatibleGroups,
isHidden,
modifiedDateTime,
resourceRoleScopes
;

UPDATE examples

Update an existing accessPackage object to change one or more of its properties, such as the display name or description.

UPDATE entra_id.identity_governance.entitlement_management_access_packages
SET
id = '{{ id }}',
createdDateTime = '{{ createdDateTime }}',
description = '{{ description }}',
displayName = '{{ displayName }}',
isHidden = {{ isHidden }},
modifiedDateTime = '{{ modifiedDateTime }}',
accessPackagesIncompatibleWith = '{{ accessPackagesIncompatibleWith }}',
assignmentPolicies = '{{ assignmentPolicies }}',
catalog = '{{ catalog }}',
incompatibleAccessPackages = '{{ incompatibleAccessPackages }}',
incompatibleGroups = '{{ incompatibleGroups }}',
resourceRoleScopes = '{{ resourceRoleScopes }}'
WHERE
access_package_id = '{{ access_package_id }}' --required
RETURNING
id,
accessPackagesIncompatibleWith,
assignmentPolicies,
catalog,
createdDateTime,
description,
displayName,
incompatibleAccessPackages,
incompatibleGroups,
isHidden,
modifiedDateTime,
resourceRoleScopes;

DELETE examples

Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment.

DELETE FROM entra_id.identity_governance.entitlement_management_access_packages
WHERE access_package_id = '{{ access_package_id }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for.

EXEC entra_id.identity_governance.entitlement_management_access_packages.get_applicable_policy_requirements
@access_package_id='{{ access_package_id }}' --required
;