AssignRole
Assign a role to a specific user.
Parameters
ctx - The context of the request.
userKey - The key of the user to assign the role to.
roleKey - The key of the role to assign to the user.
tenantKey - The key of the user's tenant.
Implementation
roleAssignment, err := Permit.Api.Users.AssignRole(ctx, "user-key", "role-key", "tenant-key")