Add group member
BetaChanges data
Adds a person, device or app to a Microsoft 365 or security group.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| Group idRequired | text |
| Member idRequired | The object id of a user, or for a security group also of a group, device or service principal. A Microsoft 365 group takes users only. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
groupId | text |
memberId | text |
Output
| Field | Type |
|---|---|
addedAdded by this run | boolean |
alreadyMemberWas already a member | boolean |
groupGroup id | string |
memberMember id | string |
Sample output, and the expression for each field
- addedtrue
- alreadyMemberfalse
- group"1"
- member"2"
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>",
"groupId": "<group id>",
"memberId": "<member id>"
},
"label": "Add group member",
"type": "graph.addGroupMember",
"version": 1
}