Manage users and groups in Azure AD (Microsoft Entra ID)
Integrate Azure Active Directory into your workflows. List, create, update, and delete users and groups. Manage group memberships programmatically.
List users in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
top | number | いいえ | Maximum number of users to return (default 100, max 999) |
filter | string | いいえ | OData filter expression (e.g., "department eq 'Sales'") |
search | string | いいえ | Search string to filter users by displayName or mail |
| パラメータ | 型 | 説明 |
|---|
users | array | List of users |
userCount | number | Number of users returned |
Get a user by ID or user principal name from Azure AD
| パラメータ | 型 | 必須 | 説明 |
|---|
userId | string | はい | User ID or user principal name (e.g., "user@example.com") |
| パラメータ | 型 | 説明 |
|---|
user | object | User details |
↳ id | string | User ID |
↳ displayName | string | Display name |
↳ givenName | string | First name |
↳ surname | string | Last name |
↳ userPrincipalName | string | User principal name (email) |
↳ mail | string | Email address |
↳ jobTitle | string | Job title |
↳ department | string | Department |
↳ officeLocation | string | Office location |
↳ mobilePhone | string | Mobile phone number |
↳ accountEnabled | boolean | Whether the account is enabled |
Create a new user in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
displayName | string | はい | Display name for the user |
mailNickname | string | はい | Mail alias for the user |
userPrincipalName | string | はい | User principal name (e.g., "user@example.com") |
password | string | はい | Initial password for the user |
accountEnabled | boolean | はい | Whether the account is enabled |
givenName | string | いいえ | First name |
surname | string | いいえ | Last name |
jobTitle | string | いいえ | Job title |
department | string | いいえ | Department |
officeLocation | string | いいえ | Office location |
mobilePhone | string | いいえ | Mobile phone number |
| パラメータ | 型 | 説明 |
|---|
user | object | Created user details |
↳ id | string | User ID |
↳ displayName | string | Display name |
↳ givenName | string | First name |
↳ surname | string | Last name |
↳ userPrincipalName | string | User principal name (email) |
↳ mail | string | Email address |
↳ jobTitle | string | Job title |
↳ department | string | Department |
↳ officeLocation | string | Office location |
↳ mobilePhone | string | Mobile phone number |
↳ accountEnabled | boolean | Whether the account is enabled |
Update user properties in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
userId | string | はい | User ID or user principal name |
displayName | string | いいえ | Display name |
givenName | string | いいえ | First name |
surname | string | いいえ | Last name |
jobTitle | string | いいえ | Job title |
department | string | いいえ | Department |
officeLocation | string | いいえ | Office location |
mobilePhone | string | いいえ | Mobile phone number |
accountEnabled | boolean | いいえ | Whether the account is enabled |
| パラメータ | 型 | 説明 |
|---|
updated | boolean | Whether the update was successful |
userId | string | ID of the updated user |
Delete a user from Azure AD (Microsoft Entra ID). The user is moved to a temporary container and can be restored within 30 days.
| パラメータ | 型 | 必須 | 説明 |
|---|
userId | string | はい | User ID or user principal name |
| パラメータ | 型 | 説明 |
|---|
deleted | boolean | Whether the deletion was successful |
userId | string | ID of the deleted user |
List groups in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
top | number | いいえ | Maximum number of groups to return (default 100, max 999) |
filter | string | いいえ | OData filter expression (e.g., "securityEnabled eq true") |
search | string | いいえ | Search string to filter groups by displayName or description |
| パラメータ | 型 | 説明 |
|---|
groups | array | List of groups |
groupCount | number | Number of groups returned |
Get a group by ID from Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
groupId | string | はい | Group ID |
| パラメータ | 型 | 説明 |
|---|
group | object | Group details |
↳ id | string | Group ID |
↳ displayName | string | Display name |
↳ description | string | Group description |
↳ mail | string | Email address |
↳ mailEnabled | boolean | Whether mail is enabled |
↳ mailNickname | string | Mail nickname |
↳ securityEnabled | boolean | Whether security is enabled |
↳ groupTypes | array | Group types |
↳ visibility | string | Group visibility |
↳ createdDateTime | string | Creation date |
Create a new group in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
displayName | string | はい | Display name for the group |
mailNickname | string | はい | Mail alias for the group (ASCII only, max 64 characters) |
description | string | いいえ | Group description |
mailEnabled | boolean | はい | Whether mail is enabled (true for Microsoft 365 groups) |
securityEnabled | boolean | はい | Whether security is enabled (true for security groups) |
groupTypes | string | いいえ | Group type: "Unified" for Microsoft 365 group, leave empty for security group |
visibility | string | いいえ | Group visibility: "Private" or "Public" |
| パラメータ | 型 | 説明 |
|---|
group | object | Created group details |
↳ id | string | Group ID |
↳ displayName | string | Display name |
↳ description | string | Group description |
↳ mail | string | Email address |
↳ mailEnabled | boolean | Whether mail is enabled |
↳ mailNickname | string | Mail nickname |
↳ securityEnabled | boolean | Whether security is enabled |
↳ groupTypes | array | Group types |
↳ visibility | string | Group visibility |
↳ createdDateTime | string | Creation date |
Update group properties in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
groupId | string | はい | Group ID |
displayName | string | いいえ | Display name |
description | string | いいえ | Group description |
mailNickname | string | いいえ | Mail alias |
visibility | string | いいえ | Group visibility: "Private" or "Public" |
| パラメータ | 型 | 説明 |
|---|
updated | boolean | Whether the update was successful |
groupId | string | ID of the updated group |
Delete a group from Azure AD (Microsoft Entra ID). Microsoft 365 and security groups can be restored within 30 days.
| パラメータ | 型 | 必須 | 説明 |
|---|
groupId | string | はい | Group ID |
| パラメータ | 型 | 説明 |
|---|
deleted | boolean | Whether the deletion was successful |
groupId | string | ID of the deleted group |
List members of a group in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
groupId | string | はい | Group ID |
top | number | いいえ | Maximum number of members to return (default 100, max 999) |
| パラメータ | 型 | 説明 |
|---|
members | array | List of group members |
memberCount | number | Number of members returned |
Add a member to a group in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
groupId | string | はい | Group ID |
memberId | string | はい | User ID of the member to add |
| パラメータ | 型 | 説明 |
|---|
added | boolean | Whether the member was added successfully |
groupId | string | Group ID |
memberId | string | Member ID that was added |
Remove a member from a group in Azure AD (Microsoft Entra ID)
| パラメータ | 型 | 必須 | 説明 |
|---|
groupId | string | はい | Group ID |
memberId | string | はい | User ID of the member to remove |
| パラメータ | 型 | 説明 |
|---|
removed | boolean | Whether the member was removed successfully |
groupId | string | Group ID |
memberId | string | Member ID that was removed |