FlowmageDocs

List user groups

BetaReads data

Lists the groups and roles a person directly belongs to in Microsoft 365.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
UserRequiredA user's object id, or their sign-in address.
Membership type"" or "group" or "directoryRole" or "administrativeUnit"
FieldsComma-separated property names.
Filtertext
SearchMatches words in the display name.
Groups per call1 to 999.
Fetch every pageFollows Graph's own next-page link. A type, filter or search reads Graph's search index, which can lag recent changes by a moment.
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`)
usertext
memberType"" or "group" or "directoryRole" or "administrativeUnit"
selecttext, by default "id,displayName,description,mail"
filtertext
searchtext
topnumber, by default 100
returnAlltrue/false, by default false
maxPagesnumber, by default 10
cursortext

Output

FieldType
groupsarray
countGroups in this answernumber
hasMoreMore groups are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • count0
  • groups[]
  • hasMorefalse
  • nextCursor""

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": "",
    "maxPages": 10,
    "memberType": "",
    "returnAll": false,
    "search": "",
    "select": "id,displayName,description,mail",
    "top": 100,
    "user": "<user>"
  },
  "label": "List user groups",
  "type": "graph.listUserGroups",
  "version": 1
}