List user groups
BetaReads data
Lists the groups and roles a person directly belongs to in Microsoft 365.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| UserRequired | A user's object id, or their sign-in address. |
| Membership type | "" or "group" or "directoryRole" or "administrativeUnit" |
| Fields | Comma-separated property names. |
| Filter | text |
| Search | Matches words in the display name. |
| Groups per call | 1 to 999. |
| Fetch every page | Follows 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 after | Pages — at most 50. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
user | text |
memberType | "" or "group" or "directoryRole" or "administrativeUnit" |
select | text, by default "id,displayName,description,mail" |
filter | text |
search | text |
top | number, by default 100 |
returnAll | true/false, by default false |
maxPages | number, by default 10 |
cursor | text |
Output
| Field | Type |
|---|---|
groups | array |
countGroups in this answer | number |
hasMoreMore groups are waiting behind this page | boolean |
nextCursorCursor for the next page | string |
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
}