Skip to main content

Add members to a group

Attach existing objects to a Standard group.

GraphQL replaces, it does not append

CoreStandardGroupUpdate with a members list replaces the current membership. To append, include the current members in the new list. The SDK and the web UI append by default.

note

This page applies to Standard groups. Generator and Query groups have their membership managed automatically by the Generator or query that owns them.

Prerequisites​

  • An existing Standard group and its hfid (or name).
  • The IDs of the objects you want to add.

Find the object IDs​

Before appending via GraphQL, look up the IDs of the objects you want to add:

query {
BuiltinTag(name__values: ["<value-1>", "<value-2>"]) {
edges {
node {
id
display_label
}
}
}
}

Replace BuiltinTag with the kind of object you're adding.

Add members​

  1. Open the group from the Groups list.
  2. Go to the Members tab.
  3. Click Add Members and select the objects.
  4. Click Save.

Verify​

Use Query group membership to confirm the expected objects are attached.

Troubleshooting​

Called update but existing members disappeared. GraphQL update replaces the full list. Re-run with the existing IDs included.

Members don't appear. Confirm the object IDs are correct and that the objects exist on the same branch as the group.

Permission denied. You need write access to both the group and the members being attached.

Next​