Microsoft Azure User API
The User API from Microsoft Azure, for user.
Operations 6
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
The User API from Microsoft Azure, for user.
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
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-user-api"
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.
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: 3.2.0
info:
title: Microsoft Azure GraphRbacManagementClient User API
version: '1.6'
description: The Graph RBAC Management Client
servers:
- url: https://graph.windows.net
security:
- azure_auth:
- user_impersonation
tags:
- name: User
paths:
/{tenantID}/users:
post:
tags:
- User
operationId: microsoftAzureUsersCreate
description: Create a new user.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'201':
description: Created. Indicates success. The new user is returned in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/User'
text/json:
schema:
$ref: '#/components/schemas/User'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/GraphError'
text/json:
schema:
$ref: '#/components/schemas/GraphError'
summary: Microsoft Azure Post Tenantid Users
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserCreateParameters'
text/json:
schema:
$ref: '#/components/schemas/UserCreateParameters'
description: Parameters to create a user.
required: true
get:
tags:
- User
operationId: microsoftAzureUsersList
description: Gets list of users for the current tenant.
parameters:
- name: $filter
in: query
required: false
description: The filter to apply to the operation.
schema:
type: string
- name: $expand
in: query
required: false
description: The expand value for the operation result.
schema:
type: string
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
content:
application/json:
schema:
$ref: '#/components/schemas/UserListResult'
text/json:
schema:
$ref: '#/components/schemas/UserListResult'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/GraphError'
text/json:
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: Users_ListNext
x-ms-odata: '#/definitions/User'
summary: Microsoft Azure Get Tenantid Users
/{tenantID}/users/{upnOrObjectId}:
get:
tags:
- User
operationId: microsoftAzureUsersGet
description: Gets user information from the directory.
parameters:
- name: upnOrObjectId
in: path
required: true
description: The object ID or principal name of the user for which to get information.
schema:
type: string
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
content:
application/json:
schema:
$ref: '#/components/schemas/User'
text/json:
schema:
$ref: '#/components/schemas/User'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/GraphError'
text/json:
schema:
$ref: '#/components/schemas/GraphError'
summary: Microsoft Azure Get Tenantid Users Upnorobjectid
patch:
tags:
- User
operationId: microsoftAzureUsersUpdate
description: Updates a user.
parameters:
- name: upnOrObjectId
in: path
required: true
description: The object ID or principal name of the user to update.
schema:
type: string
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'204':
description: No Content.
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/GraphError'
text/json:
schema:
$ref: '#/components/schemas/GraphError'
summary: Microsoft Azure Patch Tenantid Users Upnorobjectid
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserUpdateParameters'
text/json:
schema:
$ref: '#/components/schemas/UserUpdateParameters'
description: Parameters to update an existing user.
required: true
delete:
tags:
- User
operationId: microsoftAzureUsersDelete
description: Delete a user.
parameters:
- name: upnOrObjectId
in: path
required: true
description: The object ID or principal name of the user to delete.
schema:
type: string
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'204':
description: No Content
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/GraphError'
text/json:
schema:
$ref: '#/components/schemas/GraphError'
summary: Microsoft Azure Delete Tenantid Users Upnorobjectid
/{tenantID}/users/{objectId}/getMemberGroups:
post:
tags:
- User
operationId: microsoftAzureUsersGetmembergroups
description: Gets a collection that contains the object IDs of the groups of which the user is a member.
parameters:
- name: objectId
in: path
required: true
description: The object ID of the user for which to get group membership.
schema:
type: string
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
content:
application/json:
schema:
$ref: '#/components/schemas/UserGetMemberGroupsResult'
text/json:
schema:
$ref: '#/components/schemas/UserGetMemberGroupsResult'
default:
description: Error response describing why the operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/GraphError'
text/json:
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: null
summary: Microsoft Azure Post Tenantid Users Objectid Getmembergroups
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserGetMemberGroupsParameters'
text/json:
schema:
$ref: '#/components/schemas/UserGetMemberGroupsParameters'
description: User filtering parameters.
required: true
components:
schemas:
UserListResult:
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/User'
description: the list of users.
odata.nextLink:
type: string
description: The URL to get the next set of results.
description: Server response for Get tenant users API call.
User:
type: object
allOf:
- $ref: '#/components/schemas/DirectoryObject'
properties:
immutableId:
type: string
description: This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.
usageLocation:
type: string
description: 'A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".'
givenName:
type: string
description: The given name for the user.
surname:
type: string
description: The user's surname (family name or last name).
userType:
type: string
description: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'.
enum:
- Member
- Guest
x-ms-enum:
name: UserType
modelAsString: true
accountEnabled:
type: boolean
description: Whether the account is enabled.
displayName:
type: string
description: The display name of the user.
userPrincipalName:
type: string
description: The principal name of the user.
mailNickname:
type: string
description: The mail alias for the user.
mail:
type: string
description: The primary email address of the user.
signInNames:
type: array
items:
$ref: '#/components/schemas/SignInName'
description: The sign-in names of the user.
description: Active Directory user information.
UserUpdateParameters:
type: object
allOf:
- $ref: '#/components/schemas/UserBase'
properties:
accountEnabled:
type: boolean
description: Whether the account is enabled.
displayName:
type: string
description: The display name of the user.
passwordProfile:
$ref: '#/components/schemas/PasswordProfile'
description: The password profile of the user.
userPrincipalName:
type: string
description: The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant.
mailNickname:
type: string
description: The mail alias for the user.
mail:
type: string
description: The primary email address of the user.
description: Request parameters for updating an existing work or school account user.
SignInName:
type: object
properties:
type:
type: string
description: A string value that can be used to classify user sign-in types in your directory, such as 'emailAddress' or 'userName'.
value:
type: string
description: The sign-in used by the local account. Must be unique across the company/tenant. For example, 'johnc@example.com'.
additionalProperties:
type: object
description: Contains information about a sign-in name of a local account user in an Azure Active Directory B2C tenant.
UserCreateParameters:
type: object
allOf:
- $ref: '#/components/schemas/UserBase'
properties:
accountEnabled:
type: boolean
description: Whether the account is enabled.
displayName:
type: string
description: The display name of the user.
passwordProfile:
$ref: '#/components/schemas/PasswordProfile'
description: Password Profile
userPrincipalName:
type: string
description: The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant.
mailNickname:
type: string
description: The mail alias for the user.
mail:
type: string
description: The primary email address of the user.
required:
- accountEnabled
- displayName
- passwordProfile
- userPrincipalName
- mailNickname
description: Request parameters for creating a new work or school account user.
OdataError:
type: object
properties:
code:
type: string
description: Error code.
message:
type: object
x-ms-client-flatten: true
$ref: '#/components/schemas/ErrorMessage'
description: Error Message.
description: Active Directory OData error information.
ErrorMessage:
type: object
properties:
value:
type: string
x-ms-client-name: message
description: Error message value.
description: Active Directory error message.
UserGetMemberGroupsParameters:
type: object
properties:
securityEnabledOnly:
type: boolean
description: If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked.
additionalProperties:
type: object
required:
- securityEnabledOnly
description: Request parameters for GetMemberGroups API call.
UserGetMemberGroupsResult:
type: object
properties:
value:
type: array
items:
type: string
description: A collection of group IDs of which the user is a member.
description: Server response for GetMemberGroups API call.
DirectoryObject:
type: object
discriminator:
propertyName: objectType
properties:
objectId:
type: string
description: The object ID.
readOnly: true
objectType:
type: string
description: The object type.
deletionTimestamp:
type:
- string
- 'null'
format: date-time
description: The time at which the directory object was deleted.
readOnly: true
required:
- objectType
additionalProperties:
type: object
description: Represents an Azure Active Directory object.
PasswordProfile:
type: object
properties:
password:
type: string
description: Password
forceChangePasswordNextLogin:
type: boolean
description: Whether to force a password change on next login.
additionalProperties:
type: object
required:
- password
description: The password profile associated with a user.
GraphError:
type: object
properties:
odata.error:
type: object
x-ms-client-flatten: true
$ref: '#/components/schemas/OdataError'
description: A Graph API error.
description: Active Directory error information.
UserBase:
type: object
properties:
immutableId:
type: string
description: This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.
usageLocation:
type: string
description: 'A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".'
givenName:
type: string
description: The given name for the user.
surname:
type: string
description: The user's surname (family name or last name).
userType:
type: string
description: A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'.
enum:
- Member
- Guest
x-ms-enum:
name: UserType
modelAsString: true
additionalProperties:
type: object
parameters:
ApiVersionParameter:
name: api-version
in: query
required: true
description: Client API version.
schema:
type: string
top:
required: false
description: (Optional) Set the maximum number of results per response.
in: query
name: $top
x-ms-parameter-location: method
schema:
type: integer
default: 100
maximum: 999
minimum: 1
tenantIDInPath:
name: tenantID
in: path
required: true
description: The tenant ID.
x-ms-parameter-location: client
schema:
type: string
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow
x-ms-paths:
/{tenantID}/{nextLink}?OAuth2PermissionGrant_ListNext:
get:
tags:
- OAuth2PermissionGrant_ListNext
operationId: OAuth2PermissionGrant_ListNext
description: Gets the next page of OAuth2 permission grants
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/OAuth2PermissionGrantListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: OAuth2PermissionGrant_ListNext
/{tenantID}/{nextLink}?SignedInUser_ListOwnedObjectsNext:
get:
tags:
- SignedInUser
operationId: SignedInUser_ListOwnedObjectsNext
description: Get the list of directory objects that are owned by the user.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/DirectoryObjectListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: SignedInUser_ListOwnedObjectsNext
/{tenantID}/{nextLink}?Groups_ListNext:
get:
tags:
- Group
operationId: Groups_ListNext
description: Gets a list of groups for the current tenant.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/GroupListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: Groups_ListNext
/{tenantID}/{nextLink}?Groups_GetGroupMembersNext:
get:
tags:
- Group
operationId: Groups_GetGroupMembersNext
description: Gets the members of a group.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/DirectoryObjectListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: Groups_GetGroupMembersNext
/{tenantID}/{nextLink}?Applications_ListNext:
get:
tags:
- Applications
operationId: Applications_ListNext
description: Gets a list of applications from the current tenant.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/ApplicationListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: Applications_ListNext
/{tenantID}/{nextLink}?DeletedApplications_ListNext:
get:
tags:
- deletedApplications
operationId: DeletedApplications_ListNext
description: Gets a list of deleted applications in the directory.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/ApplicationListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: DeletedApplications_ListNext
/{tenantID}/{nextLink}?ServicePrincipals_ListNext:
get:
tags:
- ServicePrincipal
operationId: ServicePrincipals_ListNext
description: Gets a list of service principals from the current tenant.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/ServicePrincipalListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: ServicePrincipals_ListNext
/{tenantID}/{nextLink}?Users_ListNext:
get:
tags:
- User
operationId: Users_ListNext
description: Gets a list of users for the current tenant.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/UserListResult'
default:
description: Error response describing why the operation failed.
schema:
$ref: '#/components/schemas/GraphError'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: Users_ListNext
/{tenantID}/{nextLink}?Objects_GetObjectsByObjectIdsNext:
post:
tags:
- Objects
operationId: Objects_GetObjectsByObjectIdsNext
description: Gets AD group membership for the specified AD object IDs.
parameters:
- name: nextLink
in: path
required: true
type: string
description: Next link for the list operation.
x-ms-skip-url-encoding: true
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/tenantIDInPath'
responses:
'200':
description: OK. The operation was successful.
schema:
$ref: '#/components/schemas/DirectoryObjectListResult'
x-ms-pageable:
nextLinkName: odata.nextLink
operationName: Objects_GetObjectsByObjectIdsNext