Office 365 (Retired): Users
Summary
This module contains actions for managing users in Office 365.
Deprecated Plugin
This plugin will be retired in the future, please use the Azure AD plugin instead.
Actions
microsoft_graph.users.
create
Create a user.
Minimum Plugin Version: 1.0.0
Input
-
client: a GraphClient
-
display_name: a display name for the user
-
mail_nickname: a mail alias for the user
-
user_principal_name: the User's principal name
-
password: a password to set for the user
-
enabled: set to
false
to create the user in a disabled state (defaults totrue
) -
force_password_change: set to
true
to force password reset on first logon (defaults tofalse
) -
force_password_change_mfa: set to
true
to force password reset with MFA on first logon (defaults tofalse
)
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 6 7 8 9 |
|
microsoft_graph.users.
delete
Delete a user.
Minimum Plugin Version: 1.0.0
Input
-
client: a GraphClient
-
user_principal_name: the User's principal name
Output
Nothing is outputted by this action.
Example
1 2 3 4 |
|
microsoft_graph.users.
disable
Disable a user.
Minimum Plugin Version: 1.1.0
Input
-
client: a GraphClient
-
user_principal_name: the User's principal name
Output
Nothing is outputted by this action.
Example
1 2 3 4 |
|
microsoft_graph.users.
display
Display users in a table.
The table will have the following columns:
- Display Name
- User Principal Name
- Email Address
- Enabled
Minimum Plugin Version: 1.1.0
Input
-
text: the title of the table
-
users: any number of Users
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 6 7 8 9 |
|
microsoft_graph.users.
enable
Enable a user.
Minimum Plugin Version: 1.1.0
Input
-
client: a GraphClient
-
user_principal_name: the User's principal name
Output
Nothing is outputted by this action.
Example
1 2 3 4 |
|
microsoft_graph.users.
get_all
Get all users.
Minimum Plugin Version: 1.0.0
Input
- client: a GraphClient
Output
A list of Users.
Example
1 2 3 4 |
|
microsoft_graph.users.
get_by_id
Get the user with the supplied user ID.
Minimum Plugin Version: 1.0.0
Input
-
client: a GraphClient
-
user_id: the User ID
Output
A single User.
Example
1 2 3 4 5 |
|
microsoft_graph.users.
get_by_principal_name
Get the user with the supplied user principal name.
Minimum Plugin Version: 1.0.0
Input
-
client: a GraphClient
-
user_principal_name: the User's principal name
Output
A single User.
Example
1 2 3 4 5 |
|
microsoft_graph.users.
get_free_principal_name
Takes a list of user principal names & finds the first that is currently available.
Minimum Plugin Version: 1.1.0
Input
-
client: a GraphClient
-
user_principal_names: a list of userPrincipalNames to check
Output
Either the first available user_principal_name or null if they are all in use.
Example
1 2 3 4 5 6 7 8 |
|
microsoft_graph.users.
select
Display users in a table & prompt the task operator to make a selection.
The table will have the following columns:
- Display Name
- User Principal Name
- Email Address
- Enabled
Minimum Plugin Version: 1.1.0
Input
-
text: the title of the table
-
users: any number of Users
-
minimum: the minimum number of selections
-
maximum: the maximum number of selections
Output
A Selection containing:
Example
1 2 3 4 5 6 7 8 9 10 |
|
microsoft_graph.users.
select_one
Display users in a table & prompt the task operator to select one.
The table will have the following columns:
- Display Name
- User Principal Name
- Email Address
- Enabled
Minimum Plugin Version: 1.1.0
Input
-
text: the title of the table
-
users: any number of Users
Output
A single User.
Example
1 2 3 4 5 6 7 8 9 10 |
|
microsoft_graph.users.
update
Update one or more attributes for a user.
Minimum Plugin Version: 1.1.0
Input
-
client: a GraphClient
-
user_principal_name: the User's principal name
-
attributes: a dictionary of attribute names & values to set
Valid Attributes
See this Microsoft article for a list of user attributes.
This action will fail if any invalid attributes are supplied.
Output
Nothing is outputted by this action.
Example
1 2 3 4 5 6 7 8 |
|