Keycloak · Arazzo Workflow
Keycloak Provision a Group Hierarchy
Version 1.0.0
Create a top-level group, resolve its id, nest a child group beneath it, and read back the hierarchy.
View Spec
View on GitHub
AuthenticationAuthorizationIdentity ManagementOpenID ConnectSecuritySSOArazzoWorkflows
Provider
Workflows
provision-group-hierarchy
Create a parent group with a nested child group and return the resulting tree.
Creates a top-level group, resolves its UUID by search because create returns no body, creates a child group beneath it, and reads the parent back to confirm the hierarchy.
1
createParentGroup
Create the top-level group. Keycloak answers 201 with no body and no Location header, which is why the next step has to go looking for the id.
2
resolveParentGroup
Recover the parent group's UUID by searching the realm's top-level groups by name. This is the only route to the id, and the child endpoint cannot be called without it.
3
createChildGroup
Nest the subgroup beneath the resolved parent using the dedicated children endpoint. Posting to the top-level groups endpoint instead would silently create a second root group rather than a child.
4
readBackHierarchy
Read the parent group back to confirm the child was nested correctly and to return the full subGroups tree with the generated paths.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.