Microsoft Entra ID (formerly Azure AD) Groups.directory Object API

The groups.directoryObject API from Microsoft Entra ID (formerly Azure AD) — 113 operation(s) for groups.directoryobject.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 121

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /groups/{group-id}/acceptedSenders List who may post to a group's conversations · List acceptedSenders #
Ask an LLM
“Who is on the accepted senders list allowed to post in a group's conversations?”
“Can I see the full user and group objects on a group's allowed-senders list, not just their ids?”
Tell an agent
Show the accepted senders for group {group}.
List everyone allowed to post to conversations in group {group}, with their details.
DELETE /groups/{group-id}/acceptedSenders/{directoryObject-id}/$ref Remove one accepted sender from a group · Remove acceptedSender #
Ask an LLM
“How do I take a specific user off a group's accepted senders list by their object id?”
“Can I revoke one person's permission to post to a group's conversations?”
Tell an agent destructive · confirm first
Remove {object} from the accepted senders of group {group}.
Stop directory object {object} from being an allowed sender in group {group}.
GET /groups/{group-id}/acceptedSenders/$count Count a group's accepted senders · Get the number of the resource #
Ask an LLM
“How many users and groups are on a group's accepted senders list?”
“Is there a quick way to get just the number of allowed senders for a group?”
Tell an agent
Count the accepted senders on group {group}.
Tell me how many senders are allowed to post in group {group}.
GET /groups/{group-id}/acceptedSenders/$ref List accepted sender references for a group · List acceptedSenders #
Ask an LLM
“Can I get only the reference links of a group's accepted senders instead of full objects?”
“What ids are on a group's accepted senders list?”
Tell an agent
List the accepted sender references for group {group}.
Give me just the @odata.id links of the allowed senders in group {group}.
POST /groups/{group-id}/acceptedSenders/$ref Allow a user or group to post to a group · Create acceptedSender #
Ask an LLM
“How do I add a user to a group's accepted senders so they can post to its conversations?”
“What happens if I add someone to accepted senders who is already on the rejected senders list?”
Tell an agent
Add {ref} to the accepted senders of group {group}.
Let the user at {ref} post to conversations in group {group}.
DELETE /groups/{group-id}/acceptedSenders/$ref Remove an accepted sender by reference link · Remove acceptedSender #
Ask an LLM
“Can I remove an accepted sender from a group by passing its @id reference in the query?”
“Is there a way to drop an allowed sender using its full directory reference URL?”
Tell an agent destructive · confirm first
Remove the accepted sender with reference {ref_id} from group {group}.
Delete the allowed-sender entry {ref_id} on group {group} using its @id.
GET /groups/{group-id}/createdOnBehalfOf See who a group was created on behalf of · Get createdOnBehalfOf from groups #
Ask an LLM
“Which user or application created a group on someone's behalf?”
“Why is the created-on-behalf-of value empty for a group an administrator made?”
Tell an agent
Show who group {group} was created on behalf of.
Find the user or app that created group {group}.
GET /groups/{group-id}/memberOf List groups and units a group directly belongs to · List group memberships #
Ask an LLM
“Which groups, administrative units and admin roles is a group a direct member of?”
“Does the memberOf list for a group include nested parent groups?”
Tell an agent
List what group {group} is directly a member of.
Show the direct parent groups, admin units and roles of group {group}.
GET /groups/{group-id}/memberOf/{directoryObject-id} Get one parent a group directly belongs to · Get memberOf from groups #
Ask an LLM
“Can I fetch one specific parent group or role that a group directly belongs to?”
“How do I read a single entry from a group's direct memberOf list?”
Tell an agent
Get parent object {object} from the direct memberOf list of group {group}.
Show details of {object}, which group {group} is a direct member of.
GET /groups/{group-id}/memberOf/{directoryObject-id}/graph.administrativeUnit Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/memberOf/{directoryObject-id}/graph.group List group memberships #
GET /groups/{group-id}/memberOf/$count Count what a group directly belongs to · Get the number of the resource #
Ask an LLM
“How many groups, units and roles is a group directly a member of?”
“Is there a count endpoint for a group's direct memberOf list?”
Tell an agent
Count the direct memberships of group {group}.
Tell me how many things group {group} directly belongs to.
GET /groups/{group-id}/memberOf/graph.administrativeUnit Get the items of type microsoft.graph.administrativeUnit in the… #
GET /groups/{group-id}/memberOf/graph.administrativeUnit/$count Get the number of the resource #
GET /groups/{group-id}/memberOf/graph.group List group memberships #
GET /groups/{group-id}/memberOf/graph.group/$count Get the number of the resource #
GET /groups/{group-id}/members List a group's direct members · List group members #
Ask an LLM
“Who are the direct members of a group, including users, devices and contacts?”
“Does listing a group's members include people in nested subgroups?”
Tell an agent
List the direct members of group {group}.
Show the first {top} direct members of group {group}.
DELETE /groups/{group-id}/members/{directoryObject-id}/$ref Remove a member from a group · Remove member #
Ask an LLM
“How do I remove someone from a group by their object id?”
“Can I remove members from a group that uses dynamic membership?”
Tell an agent destructive · confirm first
Remove member {object} from group {group}.
Take directory object {object} out of the members of group {group}.
GET /groups/{group-id}/members/{directoryObject-id}/graph.application Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/members/{directoryObject-id}/graph.device Get the item of type microsoft.graph.directoryObject as microsoft.graph.device #
GET /groups/{group-id}/members/{directoryObject-id}/graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /groups/{group-id}/members/{directoryObject-id}/graph.orgContact Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/members/{directoryObject-id}/graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/members/{directoryObject-id}/graph.user List group members #
GET /groups/{group-id}/members/$count Count a group's direct members · Get the number of the resource #
Ask an LLM
“How many direct members does a group have?”
“Can I count a group's direct members matching a filter?”
Tell an agent
Count the direct members of group {group}.
Tell me how many members are directly in group {group}.
GET /groups/{group-id}/members/$ref List member references for a group · List group members #
Ask an LLM
“Can I get just the reference ids of a group's direct members without their full objects?”
“What @odata.id links make up a group's member list?”
Tell an agent
List the member references of group {group}.
Give me only the ids of the direct members in group {group}.
POST /groups/{group-id}/members/$ref Add a member to a group · Add members #
Ask an LLM
“How do I add a user to a security or Microsoft 365 group?”
“What is the limit on how many members I can add to a group in one request?”
Tell an agent
Add {ref} as a member of group {group}.
Put the directory object at {ref} into group {group}.
DELETE /groups/{group-id}/members/$ref Remove a group member by reference link · Remove member #
Ask an LLM
“Can I remove a group member by passing its @id reference in the query string?”
“Is there a way to remove someone from a group using the full directory reference URL?”
Tell an agent destructive · confirm first
Remove the member with reference {ref_id} from group {group}.
Delete membership {ref_id} from group {group} using its @id.
GET /groups/{group-id}/members/graph.application Get the items of type microsoft.graph.application in the… #
GET /groups/{group-id}/members/graph.application/$count Get the number of the resource #
GET /groups/{group-id}/members/graph.device Get the items of type microsoft.graph.device in the… #
GET /groups/{group-id}/members/graph.device/$count Get the number of the resource #
GET /groups/{group-id}/members/graph.group Get the items of type microsoft.graph.group in the… #
GET /groups/{group-id}/members/graph.group/$count Get the number of the resource #
GET /groups/{group-id}/members/graph.orgContact Get the items of type microsoft.graph.orgContact in the… #
GET /groups/{group-id}/members/graph.orgContact/$count Get the number of the resource #
GET /groups/{group-id}/members/graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /groups/{group-id}/members/graph.servicePrincipal/$count Get the number of the resource #
GET /groups/{group-id}/members/graph.user List group members #
GET /groups/{group-id}/members/graph.user/$count Get the number of the resource #
GET /groups/{group-id}/membersWithLicenseErrors List group members with license assignment errors · Get membersWithLicenseErrors from groups #
Ask an LLM
“Which members of a group failed to get their group-based license assigned?”
“Can I find members whose licenses from a group assignment are in an error state?”
Tell an agent
List the members of group {group} that have license errors.
Show who in group {group} failed group-based license assignment.
GET /groups/{group-id}/membersWithLicenseErrors/{directoryObject-id} Get one group member with a license error · Get membersWithLicenseErrors from groups #
Ask an LLM
“Can I look up one specific member that has a license error from a group's license assignment?”
“How do I read a single entry from a group's license-error member list?”
Tell an agent
Get license-error member {object} of group {group}.
Show details of {object}, which has a license assignment error in group {group}.
GET /groups/{group-id}/membersWithLicenseErrors/{directoryObject-id}/graph.application Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/membersWithLicenseErrors/{directoryObject-id}/graph.device Get the item of type microsoft.graph.directoryObject as microsoft.graph.device #
GET /groups/{group-id}/membersWithLicenseErrors/{directoryObject-id}/graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /groups/{group-id}/membersWithLicenseErrors/{directoryObject-id}/graph.orgContact Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/membersWithLicenseErrors/{directoryObject-id}/graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/membersWithLicenseErrors/{directoryObject-id}/graph.user Get the item of type microsoft.graph.directoryObject as microsoft.graph.user #
GET /groups/{group-id}/membersWithLicenseErrors/$count Count group members with license errors · Get the number of the resource #
Ask an LLM
“How many members of a group have license assignment errors?”
“Is there a quick count of failed group-based license assignments for a group?”
Tell an agent
Count the license-error members of group {group}.
Tell me how many members of group {group} have license errors.
GET /groups/{group-id}/membersWithLicenseErrors/graph.application Get the items of type microsoft.graph.application in the… #
GET /groups/{group-id}/membersWithLicenseErrors/graph.application/$count Get the number of the resource #
GET /groups/{group-id}/membersWithLicenseErrors/graph.device Get the items of type microsoft.graph.device in the… #
GET /groups/{group-id}/membersWithLicenseErrors/graph.device/$count Get the number of the resource #
GET /groups/{group-id}/membersWithLicenseErrors/graph.group Get the items of type microsoft.graph.group in the… #
GET /groups/{group-id}/membersWithLicenseErrors/graph.group/$count Get the number of the resource #
GET /groups/{group-id}/membersWithLicenseErrors/graph.orgContact Get the items of type microsoft.graph.orgContact in the… #
GET /groups/{group-id}/membersWithLicenseErrors/graph.orgContact/$count Get the number of the resource #
GET /groups/{group-id}/membersWithLicenseErrors/graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /groups/{group-id}/membersWithLicenseErrors/graph.servicePrincipal/$count Get the number of the resource #
GET /groups/{group-id}/membersWithLicenseErrors/graph.user Get the items of type microsoft.graph.user in the… #
GET /groups/{group-id}/membersWithLicenseErrors/graph.user/$count Get the number of the resource #
GET /groups/{group-id}/owners List a group's owners · List group owners #
Ask an LLM
“Who owns a group and is allowed to modify it?”
“Why does a group synced from on-premises show no owners?”
Tell an agent
List the owners of group {group}.
Show who can manage group {group}.
DELETE /groups/{group-id}/owners/{directoryObject-id}/$ref Remove an owner from a group · Remove group owner #
Ask an LLM
“How do I remove someone as an owner of a group by their object id?”
“Can I remove the last user owner of a group?”
Tell an agent destructive · confirm first
Remove owner {object} from group {group}.
Take directory object {object} off the owners of group {group}.
GET /groups/{group-id}/owners/{directoryObject-id}/graph.application Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/owners/{directoryObject-id}/graph.device Get the item of type microsoft.graph.directoryObject as microsoft.graph.device #
GET /groups/{group-id}/owners/{directoryObject-id}/graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /groups/{group-id}/owners/{directoryObject-id}/graph.orgContact Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/owners/{directoryObject-id}/graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/owners/{directoryObject-id}/graph.user Get the item of type microsoft.graph.directoryObject as microsoft.graph.user #
GET /groups/{group-id}/owners/$count Count a group's owners · Get the number of the resource #
Ask an LLM
“How many owners does a group have?”
“Is there a count endpoint for a group's owners?”
Tell an agent
Count the owners of group {group}.
Tell me how many owners group {group} has.
GET /groups/{group-id}/owners/$ref List owner references for a group · List group owners #
Ask an LLM
“Can I get just the reference ids of a group's owners instead of full objects?”
“What @odata.id links make up a group's owner list?”
Tell an agent
List the owner references of group {group}.
Give me only the ids of the owners of group {group}.
POST /groups/{group-id}/owners/$ref Add an owner to a group · Add owners #
Ask an LLM
“How do I make a user an owner of a Microsoft 365 or security group?”
“Can a service principal be added as a group owner?”
Tell an agent
Add {ref} as an owner of group {group}.
Make the user or service principal at {ref} an owner of group {group}.
DELETE /groups/{group-id}/owners/$ref Remove a group owner by reference link · Remove group owner #
Ask an LLM
“Is it possible to revoke group ownership by sending the owner's @id in the query?”
“Is there a way to drop an owner from a group using the full directory reference URL?”
Tell an agent destructive · confirm first
Remove the owner with reference {ref_id} from group {group}.
Delete ownership {ref_id} from group {group} using its @id.
GET /groups/{group-id}/owners/graph.application Get the items of type microsoft.graph.application in the… #
GET /groups/{group-id}/owners/graph.application/$count Get the number of the resource #
GET /groups/{group-id}/owners/graph.device Get the items of type microsoft.graph.device in the… #
GET /groups/{group-id}/owners/graph.device/$count Get the number of the resource #
GET /groups/{group-id}/owners/graph.group Get the items of type microsoft.graph.group in the… #
GET /groups/{group-id}/owners/graph.group/$count Get the number of the resource #
GET /groups/{group-id}/owners/graph.orgContact Get the items of type microsoft.graph.orgContact in the… #
GET /groups/{group-id}/owners/graph.orgContact/$count Get the number of the resource #
GET /groups/{group-id}/owners/graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /groups/{group-id}/owners/graph.servicePrincipal/$count Get the number of the resource #
GET /groups/{group-id}/owners/graph.user Get the items of type microsoft.graph.user in the… #
GET /groups/{group-id}/owners/graph.user/$count Get the number of the resource #
GET /groups/{group-id}/rejectedSenders List who is blocked from posting to a group · List rejectedSenders #
Ask an LLM
“Who is blocked from posting to a group's conversations?”
“Can I see the full details of users on a group's rejected senders list?”
Tell an agent
Show the rejected senders for group {group}.
List every user or group blocked from posting in group {group}.
DELETE /groups/{group-id}/rejectedSenders/{directoryObject-id}/$ref Unblock one rejected sender from a group · Remove rejectedSender #
Ask an LLM
“How can I unblock a specific user so they can post to a group again?”
“Can I take one object id off a group's rejected senders list?”
Tell an agent destructive · confirm first
Remove {object} from the rejected senders of group {group}.
Unblock directory object {object} from posting in group {group}.
GET /groups/{group-id}/rejectedSenders/$count Count a group's rejected senders · Get the number of the resource #
Ask an LLM
“How many senders are blocked from posting to a group?”
“Can I get a count of a group's rejected senders filtered by a condition?”
Tell an agent
Count the rejected senders on group {group}.
Tell me how many users are blocked from posting in group {group}.
GET /groups/{group-id}/rejectedSenders/$ref List rejected sender references for a group · List rejectedSenders #
Ask an LLM
“Can I list only the reference ids of a group's blocked senders?”
“What @odata.id links are on a group's rejected senders list?”
Tell an agent
List the rejected sender references for group {group}.
Give me just the ids of blocked senders in group {group}.
POST /groups/{group-id}/rejectedSenders/$ref Block a user or group from posting to a group · Create rejectedSender #
Ask an LLM
“How do I stop a particular user from posting to a group's conversations?”
“Will blocking a sender fail if they are already on the group's accepted senders list?”
Tell an agent
Add {ref} to the rejected senders of group {group}.
Block the user at {ref} from posting in group {group}.
DELETE /groups/{group-id}/rejectedSenders/$ref Unblock a rejected sender by reference link · Remove rejectedSender #
Ask an LLM
“Can I remove a blocked sender from a group by passing its @id reference in the query string?”
“Is there a way to unblock a sender using the full directory reference URL?”
Tell an agent destructive · confirm first
Remove the rejected sender with reference {ref_id} from group {group}.
Unblock sender {ref_id} on group {group} using its @id.
GET /groups/{group-id}/transitiveMemberOf List all groups a group belongs to, incl. nested · List group transitive memberOf #
Ask an LLM
“Which groups does a group belong to, including through nested parent groups?”
“Does the transitive memberOf list return all group types, not just Microsoft 365 groups?”
Tell an agent
List every group group {group} belongs to directly or through nesting.
Show the full transitive memberOf of group {group}.
GET /groups/{group-id}/transitiveMemberOf/{directoryObject-id} Get one direct or nested parent of a group · Get transitiveMemberOf from groups #
Ask an LLM
“Can I fetch a single entry from a group's transitive memberships, even if it is an indirect parent?”
“How do I read one ancestor of a group reached through nested membership?”
Tell an agent
Get ancestor {object} from the transitive memberOf of group {group}.
Show details of {object}, which group {group} belongs to directly or via nesting.
GET /groups/{group-id}/transitiveMemberOf/{directoryObject-id}/graph.administrativeUnit Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/transitiveMemberOf/{directoryObject-id}/graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /groups/{group-id}/transitiveMemberOf/$count Count everything a group belongs to, incl. nested · Get the number of the resource #
Ask an LLM
“How many groups and units does a group belong to once nested memberships are included?”
“Can I count a group's transitive memberOf entries?”
Tell an agent
Count the transitive memberships of group {group}.
Tell me how many ancestors group {group} has, including nested ones.
GET /groups/{group-id}/transitiveMemberOf/graph.administrativeUnit Get the items of type microsoft.graph.administrativeUnit in the… #
GET /groups/{group-id}/transitiveMemberOf/graph.administrativeUnit/$count Get the number of the resource #
GET /groups/{group-id}/transitiveMemberOf/graph.group Get the items of type microsoft.graph.group in the… #
GET /groups/{group-id}/transitiveMemberOf/graph.group/$count Get the number of the resource #
GET /groups/{group-id}/transitiveMembers List all members of a group, incl. nested · List group transitive members #
Ask an LLM
“Who are all the members of a group once nested subgroups are flattened?”
“What error do I get if I filter transitive members by an unsupported member type?”
Tell an agent
List every member of group {group}, including nested ones.
Show the flattened transitive membership of group {group}.
GET /groups/{group-id}/transitiveMembers/{directoryObject-id} Get one direct or nested member of a group · Get transitiveMembers from groups #
Ask an LLM
“Can I fetch a single member of a group even if they are in only through a nested subgroup?”
“How do I read one entry from a group's transitive members?”
Tell an agent
Get transitive member {object} of group {group}.
Show {object}, a direct or nested member of group {group}.
GET /groups/{group-id}/transitiveMembers/{directoryObject-id}/graph.application Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/transitiveMembers/{directoryObject-id}/graph.device Get the item of type microsoft.graph.directoryObject as microsoft.graph.device #
GET /groups/{group-id}/transitiveMembers/{directoryObject-id}/graph.group List group transitive members #
GET /groups/{group-id}/transitiveMembers/{directoryObject-id}/graph.orgContact Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/transitiveMembers/{directoryObject-id}/graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /groups/{group-id}/transitiveMembers/{directoryObject-id}/graph.user List group transitive members #
GET /groups/{group-id}/transitiveMembers/$count Count all members of a group, incl. nested · Get the number of the resource #
Ask an LLM
“How many members does a group have once nested subgroups are included?”
“Can I count a group's transitive members?”
Tell an agent
Count all transitive members of group {group}.
Tell me how many members group {group} has, including nested ones.
GET /groups/{group-id}/transitiveMembers/graph.application Get the items of type microsoft.graph.application in the… #
GET /groups/{group-id}/transitiveMembers/graph.application/$count Get the number of the resource #
GET /groups/{group-id}/transitiveMembers/graph.device Get the items of type microsoft.graph.device in the… #
GET /groups/{group-id}/transitiveMembers/graph.device/$count Get the number of the resource #
GET /groups/{group-id}/transitiveMembers/graph.group List group transitive members #
GET /groups/{group-id}/transitiveMembers/graph.group/$count Get the number of the resource #
GET /groups/{group-id}/transitiveMembers/graph.orgContact Get the items of type microsoft.graph.orgContact in the… #
GET /groups/{group-id}/transitiveMembers/graph.orgContact/$count Get the number of the resource #
GET /groups/{group-id}/transitiveMembers/graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /groups/{group-id}/transitiveMembers/graph.servicePrincipal/$count Get the number of the resource #
GET /groups/{group-id}/transitiveMembers/graph.user List group transitive members #
GET /groups/{group-id}/transitiveMembers/graph.user/$count Get the number of the resource #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/azure-ad:azure-ad-groups-directoryobject-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

azure-ad-groups-directoryobject-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph…
  description: This OData service is located at https://graph.microsoft.com/v1.0
  version: v1.0
  x-ms-generated-by:
    toolName: Microsoft.OpenApi.OData
    toolVersion: 0.0.0.0
servers:
- url: https://graph.microsoft.com/v1.0
tags:


# --- truncated at 32 KB (1435 KB total) ---
# Full source: https://artifacts.apis.io/azure-ad/openapi/azure-ad-groups-directoryobject-api-openapi.yml