APIUser
Change Role
Admin operation to modify user roles and permissions
Change Role
ADMIN
Administrative operation to change a user's role and update their permissions.
Mutation
GraphQL Schema
changeRole(email: String!, newRole: String!): StringParameters
emailString!Required
Email address of the user whose role should be changed
newRoleString!Required
New role to assign: "ROLE_USER" or "ROLE_ADMIN"
Example Usage
mutation {
changeRole(
email: "user@example.com"
newRole: "ROLE_ADMIN"
)
}Security Considerations
Admin Access Only
This operation requires ROLE_ADMIN privileges.
Audit Trail
All role changes should be logged with timestamp, admin ID, and reason for compliance.