Skip to content

Enhancement: add more options to aad user set #4569

@milanholemans

Description

@milanholemans

After

has been implemented, let's add the same options to aad user set.

Options to add

Option Description
--displayName [displayName] The name to display in the address book for the user.
--firstName [firstName] The given name (first name) of the user. Maximum length is 64 characters.
--lastName [lastName] The user's surname (family name or last name). Maximum length is 64 characters.
--forceChangePasswordNextSignInWithMfa Whether the user should change his/her password on the next login and setup MFA. Can only be set in combination with resetPassword.
--usageLocation [usageLocation] A two letter country code (ISO standard 3166). Required for users that will be assigned licenses.
--officeLocation [officeLocation] The office location in the user's place of business.
--jobTitle [jobTitle] The user's job title. Maximum length is 128 characters.
--companyName [companyName] The company name which the user is associated. The maximum length is 64 characters.
--department [department] The name for the department in which the user works. Maximum length is 64 characters.
--preferredLanguage [preferredLanguage] The preferred language for the user. Should follow ISO 639-1 Code. Example: en-US.
--managerUserId [managerUserId] User ID of the user's manager. Specify managerUserId, managerUserName or removeManager.
--managerUserName [managerUserName] User principal name of the manager. Specify managerUserId, managerUserName or removeManager.
--removeManager Remove currently set manager. The user will have no manager when this flag is set. Specify managerUserId, managerUserName or removeManager.

API

https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http

To remove the manager we execute use:

DELETE https://graph.microsoft.com/v1.0/users/10f17b99-784c-4526-8747-aec8a3159d6a/manager/$ref

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions