FlowmageDocs

List group members

BetaReads dataVersion 2

Lists the members of a Microsoft 365 group.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
Group idRequiredtext
Member type"" or "user" or "group" or "servicePrincipal" or "device" or "orgContact"
Fieldstext
Filtertext
Searchtext
Members per call1 to 999.
Fetch every pageFollows Graph's own next-page link. In v1.0 service principals are not listed — the vendor's own known issue.
Stop afterPages — at most 50.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
groupIdtext
memberType"" or "user" or "group" or "servicePrincipal" or "device" or "orgContact"
selecttext, by default "id,displayName,mail,userPrincipalName"
filtertext
searchtext
topnumber, by default 100
returnAlltrue/false, by default false
maxPagesnumber, by default 10
cursortext

Output

FieldType
membersarray
countMembers in this answernumber
hasMoreMore members are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • count0
  • hasMorefalse
  • members[]

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "cursor": "",
    "filter": "",
    "groupId": "<group id>",
    "maxPages": 10,
    "memberType": "",
    "returnAll": false,
    "search": "",
    "select": "id,displayName,mail,userPrincipalName",
    "top": 100
  },
  "label": "List group members",
  "type": "graph.listGroupMembers",
  "version": 2
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 1
SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
Group idRequiredtext
Member type"" or "user" or "group" or "servicePrincipal" or "device" or "orgContact"
Fieldstext
Filtertext
Searchtext
Members per call1 to 999.
Fetch every pageFollows Graph's own next-page link. In v1.0 service principals are not listed — the vendor's own known issue.
Stop afterPages — at most 50.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
groupIdtext
memberType"" or "user" or "group" or "servicePrincipal" or "device" or "orgContact"
selecttext, by default "id,displayName,mail,userPrincipalName"
filtertext
searchtext
topnumber, by default 100
returnAlltrue/false, by default false
maxPagesnumber, by default 10