Skip to content

New command: viva engage role member add #6819

@MartinM85

Description

@MartinM85

Usage

m365 viva engage role member add [options]

Description

Assign a Viva Engage role to a user.

Options

Option Description
--roleId [roleId] The id of the Viva Engage role. Specify either roleId or roleName, but not both.
--roleName [roleName] The name of the Viva Engage role. Specify either roleId or roleName, but not both.
--userId [userId] The id of the user to be assigned to the role. Specify either userId or userName, but not both.
--userName [userName] The UPN of the user to be assigned to the role. Specify either userId or userName, but not both.

Examples

Assign a user specified by id to the role specified by name

m365 viva engage role member add --userId 7a2ca997-9461-402e-9882-58088a370889 --roleName 'Verified Admin'

Assign a user specified by UPN to the role specified by id

m365 viva engage role member add --userName john.doe@contoso.com --roleId 77aa47ad-96fe-4ecc-8024-fd1ac5e28f17

Default properties

Additional Info

Requires new permission EngagementRole.ReadWrite.All

It's a beta endpoint, let's not forget to mention this in the docs with an admonition.

More info: https://learn.microsoft.com/graph/api/engagementrole-post-members?view=graph-rest-beta

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions