Skip to main content

administrative_units

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

Overview

Nameadministrative_units
TypeResource
Identra_id.directory.administrative_units

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. 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])$)
descriptionstringAn optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search.
displayNamestringDisplay name for the administrative unit. Maximum length is 256 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
extensionsarrayThe collection of open extensions defined for this administrative unit. Nullable.
isMemberManagementRestrictedbooleantrue if members of this administrative unit should be treated as sensitive, which requires specific permissions to manage. If not set, the default value is null and the default behavior is false. Use this property to define administrative units with roles that don't inherit from tenant-level administrators, and where the management of individual member objects is limited to administrators scoped to a restricted management administrative unit. This property is immutable and can't be changed later. For more information on how to work with restricted management administrative units, see Restricted management administrative units in Microsoft Entra ID.
membersarrayUsers and groups that are members of this administrative unit. Supports $expand.
membershipRulestringThe dynamic membership rule for the administrative unit. For more information about the rules you can use for dynamic administrative units and dynamic groups, see Manage rules for dynamic membership groups in Microsoft Entra ID.
membershipRuleProcessingStatestringControls whether the dynamic membership rule is actively processed. Set to On to activate the dynamic membership rule, or Paused to stop updating membership dynamically.
membershipTypestringIndicates the membership type for the administrative unit. The possible values are: dynamic, assigned. If not set, the default value is null and the default behavior is assigned.
scopedRoleMembersarrayScoped-role members of this administrative unit.
visibilitystringControls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership. If not set, the default value is null and the default behavior is public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectadministrative_unit_idRetrieve the properties and relationships of an administrativeUnit object. The administrativeUnit resource supports extensions, which also allows you to use the GET operation to get custom properties and extension data in an administrativeUnit instance.
listselectRetrieve a list of administrativeUnit objects.
insertinsertCreate a new administrativeUnit.
updateupdateadministrative_unit_idUpdate the properties of an administrativeUnit object.
deletedeleteadministrative_unit_idIf-MatchDelete an administrativeUnit.

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
administrative_unit_idstringThe unique identifier of administrativeUnit
If-MatchstringETag

SELECT examples

Retrieve the properties and relationships of an administrativeUnit object. The administrativeUnit resource supports extensions, which also allows you to use the GET operation to get custom properties and extension data in an administrativeUnit instance.

SELECT
id,
deletedDateTime,
description,
displayName,
extensions,
isMemberManagementRestricted,
members,
membershipRule,
membershipRuleProcessingState,
membershipType,
scopedRoleMembers,
visibility
FROM entra_id.directory.administrative_units
WHERE administrative_unit_id = '{{ administrative_unit_id }}' -- required
;

INSERT examples

Create a new administrativeUnit.

INSERT INTO entra_id.directory.administrative_units (
id,
deletedDateTime,
description,
displayName,
isMemberManagementRestricted,
membershipRule,
membershipRuleProcessingState,
membershipType,
visibility,
extensions,
members,
scopedRoleMembers
)
SELECT
'{{ id }}',
'{{ deletedDateTime }}',
'{{ description }}',
'{{ displayName }}',
{{ isMemberManagementRestricted }},
'{{ membershipRule }}',
'{{ membershipRuleProcessingState }}',
'{{ membershipType }}',
'{{ visibility }}',
'{{ extensions }}',
'{{ members }}',
'{{ scopedRoleMembers }}'
RETURNING
id,
deletedDateTime,
description,
displayName,
extensions,
isMemberManagementRestricted,
members,
membershipRule,
membershipRuleProcessingState,
membershipType,
scopedRoleMembers,
visibility
;

UPDATE examples

Update the properties of an administrativeUnit object.

UPDATE entra_id.directory.administrative_units
SET
id = '{{ id }}',
deletedDateTime = '{{ deletedDateTime }}',
description = '{{ description }}',
displayName = '{{ displayName }}',
isMemberManagementRestricted = {{ isMemberManagementRestricted }},
membershipRule = '{{ membershipRule }}',
membershipRuleProcessingState = '{{ membershipRuleProcessingState }}',
membershipType = '{{ membershipType }}',
visibility = '{{ visibility }}',
extensions = '{{ extensions }}',
members = '{{ members }}',
scopedRoleMembers = '{{ scopedRoleMembers }}'
WHERE
administrative_unit_id = '{{ administrative_unit_id }}' --required
RETURNING
id,
deletedDateTime,
description,
displayName,
extensions,
isMemberManagementRestricted,
members,
membershipRule,
membershipRuleProcessingState,
membershipType,
scopedRoleMembers,
visibility;

DELETE examples

Delete an administrativeUnit.

DELETE FROM entra_id.directory.administrative_units
WHERE administrative_unit_id = '{{ administrative_unit_id }}' --required
AND If-Match = '{{ If-Match }}'
;