IAM.USER.UNASSIGN
IAM.USER.UNASSIGN principal role
- Group
- IAM
- Complexity
- O(1)
- Arity
- 3 (exactly, counting the command name)
- Flags
- admin, write
- HotKV Cloud
- Not available
- On-Premise
- requires the enterprise-iam license feature
IAM.USER.UNASSIGN takes back a role given with
IAM.USER.ASSIGN. It applies to open sessions on
their next command, on every node of a cluster. A login that has the role by
another principal (the user and a group, for example) keeps it. A session left
with no role can run nothing, until it logs in again (and a login with no role is
refused).
principal is written as it was for IAM.USER.ASSIGN.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| The role was taken | Integer 1 |
Integer 1 |
| The principal did not have it | Integer 0 |
Integer 0 |
Without a license that includes enterprise-iam the reply is the error
NOLICENSE enterprise-iam requires a HotKV license. Contact sales@hotkv.com.
Examples
Section titled “Examples”127.0.0.1:6379> IAM.USER.UNASSIGN alice app(integer) 1127.0.0.1:6379> IAM.USER.UNASSIGN alice app(integer) 0Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.