Skip to main content

viva engage community user list

Lists all users within a specified Microsoft 365 Viva Engage community

Usage

m365 viva engage community user list [options]

Options

--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 [entraGroupId]

The ID of the Microsoft 365 group. Specify communityId, communityDisplayName or entraGroupId.

-r, --role [role]

Filter the results to only users with the given role: Admin, Member.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

List all users from a community specified by ID.

m365 viva engage community user list --communityId eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIzNjAyMDAxMTAwOSJ9

List all admins from a community specified by display name.

m365 viva engage community user list --communityDisplayName "All company" --role Admin

List all members from a community specified by group ID.

m365 viva engage community user list --entraGroupId b6c35b51-ebca-445c-885a-63a67d24cb53 --role Member

Response

Standard response

[
{
"id": "da634de7-d23c-4419-ab83-fcd395b4ebd0",
"businessPhones": [
"123-555-1215"
],
"displayName": "Anton Johansen",
"givenName": "Anton",
"jobTitle": "IT Manager",
"mail": null,
"mobilePhone": "123-555-6645",
"officeLocation": "123455",
"preferredLanguage": null,
"surname": "Johansen",
"userPrincipalName": "Anton.Johansen@contoso.onmicrosoft.com",
"roles": [
"Admin"
]
}
]
CTRL + M