diagrid sso group update
Change a group's display name or roles, or the groups claim
Description
Change a group's display name or roles. --role replaces every role the group has. --groups-attribute changes the claim the groups are read from, for every group.
diagrid sso group update <group> [flags]
Examples
# Map group team-a to the viewer role on project team-a-project instead
diagrid sso group update team-a --role cra.diagrid:viewer --project team-a-project
# Rename a group
diagrid sso group update 6f1c2d3e-auditors --display-name "External auditors"
# Read the groups from the realm_access.roles claim instead
diagrid sso group update team-a --groups-attribute realm_access.roles
Options
--api-key string Diagrid Cloud API key
--confirm-admin-roles Confirm that the group's members become admins of the whole organization, needed when --role grants diagrid:admin, cra.diagrid:admin or org.diagrid:admin
--display-name string A name to show for the group, when its value is an ID
--groups-attribute string The claim in a user's token that lists their groups, as a JMESPath expression such as groups or realm_access.roles; it applies to every group. An empty value means groups. A change reaches each user at their next sign-in
-h, --help help for update
-o, --output string Output format, supported [table, yaml, json] (default "table")
-p, --project string Scope every --role to this project, so cra.diagrid:editor becomes cra.diagrid:editor:projects:<project>
-r, --role strings Role to grant the group's members; repeat it, or separate roles with commas, for more than one (cra.diagrid:admin, cra.diagrid:editor, cra.diagrid:viewer, or one scoped to a project such as cra.diagrid:editor:projects:<project>)
SEE ALSO
- diagrid sso group - Map your identity provider's groups to roles in your organization