directoryObject resource type

Namespace: microsoft.graph

Represents an Azure Active Directory object. The directoryObject type is the base type for the following directory entity types generally referred to as directory objects:

Inherits from entity.

Methods

Method Return Type Description
Get directoryObject directoryObject Read the properties of a directory object.
Delete directoryObject None Delete a directory object.
Get available extension properties extensionProperty collection Get all or a filtered list of the directory extension properties that have been registered in a directory.
checkMemberGroups String collection Check for membership in a specified list of groups, and return from that list those groups of which the specified user, group, service principal, organizational contact, device, or directory object is a member. The check is transitive.
getMemberGroups String collection Return all groups that the user, group, service principal, organizational contact, device, or directory object is a member of. The check is transitive.
checkMemberObjects String collection Check for membership in a list of group, administrative units, or directory roles for the specified user, group, device, organizational contact, or directory object. This method is transitive.
getMemberObjects String collection Return all groups, administrative units, and directory roles that the user, group, device, organizational contact, or directory object is a member of. The check is transitive.
getByIds directoryObject collection Get a set of directory objects based on a set of supplied ids.
validateProperties JSON Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies.
delta directoryObject collection Get incremental changes for directory objects, for example, users, groups, applications, and service principals. Each derived type supports filtering by the id. For more information on delta queries, see the Use delta query to track changes in Microsoft Graph data.

Properties

Property Type Description
deletedDateTime DateTimeOffset Date and time when this object was deleted. Always null when the object hasn't been deleted.
id String The unique identifier for the object. For example, 12345678-9abc-def0-1234-56789abcde. The value of the id property is often but not exclusively in the form of a GUID; treat it as an opaque identifier and do not rely on it being a GUID. Key. Not nullable. Read-only. Inherited from entity.

Relationships

None.

JSON representation

Here is a JSON representation of the resource

{
  "id": "string (identifier)"
}