Skip to main content

Save an Organization

PUT 

/user-svc/organization

Allows a logged-in user to save an organization. The user initiating the request will be assigned the role of admin for that organization. The initiating user will receive a dynamic role in the format user-svc:org:{organizationId}:admin, where {organizationId} is a unique identifier for the saved organization. The creator membership also receives the canonical per-user org role user-svc:org:{organizationId}:{userId} so org-specific permits can target the creator directly. Dynamic roles are generated based on specific user-resource associations (in this case the resource being the organization), offering more flexible permission management compared to static roles.

Request

Responses

User saved successfully