Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: viva engage community user remove #6296

Open
Jwaegebaert opened this issue Sep 2, 2024 · 0 comments · May be fixed by #6389
Open

New command: viva engage community user remove #6296

Jwaegebaert opened this issue Sep 2, 2024 · 0 comments · May be fixed by #6389

Comments

@Jwaegebaert
Copy link
Contributor

Jwaegebaert commented Sep 2, 2024

Usage

m365 viva engage community user remove [options]

Description

Removes a specified user from a Microsoft 365 Viva Engage community

Options

Option Description
--communityId [communityId] The ID of the Viva Engage community. Specify communityId, communityDisplayName or entraGroupId.
-n, --communityDisplayName [communityDisplayName] The display name of the Viva Engage community. Specify communityId, communityDisplayName or entraGroupId.
--entraGroupId [groupId] The ID of the Microsoft 365 group. Specify communityId, communityDisplayName or entraGroupId.
--id [id] Microsoft Entra IDs of the user. Specify either id or userName but not both.
--userName [userName] The user principal names of the user. Specify either id or userName but not both.
-f, --force Don't prompt for confirming removing the user from the specified Viva Engage community.

Examples

Remove a user specified by ID as a member from a community specified by display name.

m365 viva engage community user remove --communityDisplayName "All company" --id 098b9f52-f48c-4401-819f-29c33794c3f5

Remove a user specified by UPN from a community specified by its group ID without confirmation.

m365 viva engage community user remove --entraGroupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userName [email protected] --force

Additional Info

Warning

Be cautious when removing admin users, as your community must always have at least one admin. You won't be able to remove the last remaining admin user.

The role admin is essentially the same as owner, but the documentation refers to them as admin instead of owner for a community.

The endpoints you should look into for this scenario:

@Jwaegebaert Jwaegebaert added new feature needs peer review Needs second pair of eyes to review the spec or PR labels Sep 2, 2024
@waldekmastykarz waldekmastykarz added this to the v10 milestone Sep 18, 2024
@waldekmastykarz waldekmastykarz removed the needs peer review Needs second pair of eyes to review the spec or PR label Sep 18, 2024
@MathijsVerbeeck MathijsVerbeeck self-assigned this Sep 26, 2024
MathijsVerbeeck added a commit to MathijsVerbeeck/cli-microsoft365 that referenced this issue Sep 26, 2024
MathijsVerbeeck added a commit to MathijsVerbeeck/cli-microsoft365 that referenced this issue Sep 26, 2024
MathijsVerbeeck added a commit to MathijsVerbeeck/cli-microsoft365 that referenced this issue Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants