Skip to main content

permission_grants

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

Overview

Namepermission_grants
TypeResource
Identra_id.groups.permission_grants

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
clientAppIdstringID of the service principal of the Microsoft Entra app that has been granted access. Read-only.
clientIdstringID of the Microsoft Entra app that has been granted access. Read-only.
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])$)
permissionstringThe name of the resource-specific permission. Read-only.
permissionTypestringThe type of permission. The possible values are: Application, Delegated. Read-only.
resourceAppIdstringID of the Microsoft Entra app that is hosting the resource. Read-only.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectgroup_id, resource_specific_permission_grant_id
listselectgroup_idList all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding resource-specific access that each app has.
insertinsertgroup_id
updateupdategroup_id, resource_specific_permission_grant_id
deletedeletegroup_id, resource_specific_permission_grant_idIf-Match

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
group_idstringThe unique identifier of group
resource_specific_permission_grant_idstringThe unique identifier of resourceSpecificPermissionGrant
If-MatchstringETag

SELECT examples

Retrieved navigation property

SELECT
id,
clientAppId,
clientId,
deletedDateTime,
permission,
permissionType,
resourceAppId
FROM entra_id.groups.permission_grants
WHERE group_id = '{{ group_id }}' -- required
AND resource_specific_permission_grant_id = '{{ resource_specific_permission_grant_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.groups.permission_grants (
id,
deletedDateTime,
clientAppId,
clientId,
permission,
permissionType,
resourceAppId,
group_id
)
SELECT
'{{ id }}',
'{{ deletedDateTime }}',
'{{ clientAppId }}',
'{{ clientId }}',
'{{ permission }}',
'{{ permissionType }}',
'{{ resourceAppId }}',
'{{ group_id }}'
RETURNING
id,
clientAppId,
clientId,
deletedDateTime,
permission,
permissionType,
resourceAppId
;

UPDATE examples

No description available.

UPDATE entra_id.groups.permission_grants
SET
id = '{{ id }}',
deletedDateTime = '{{ deletedDateTime }}',
clientAppId = '{{ clientAppId }}',
clientId = '{{ clientId }}',
permission = '{{ permission }}',
permissionType = '{{ permissionType }}',
resourceAppId = '{{ resourceAppId }}'
WHERE
group_id = '{{ group_id }}' --required
AND resource_specific_permission_grant_id = '{{ resource_specific_permission_grant_id }}' --required
RETURNING
id,
clientAppId,
clientId,
deletedDateTime,
permission,
permissionType,
resourceAppId;

DELETE examples

No description available.

DELETE FROM entra_id.groups.permission_grants
WHERE group_id = '{{ group_id }}' --required
AND resource_specific_permission_grant_id = '{{ resource_specific_permission_grant_id }}' --required
AND If-Match = '{{ If-Match }}'
;