Checks if the specified user has the specified role.
Output Parameter Description
| Name | Type | Description |
|---|
| principal | string | Value of input parameter principal |
| role | string | input parameter role for which membership is being checked |
| has_role | boolean | Indicates whether the specified user has membership in the specified target input parameter role. | Possible
Values | Description |
|---|
| true | User has membership in the role | | false | User does not have membership in the role |
|
| info | map of string to strings | Additional information. The default value is an empty map ( {} ). | Possible
Parameters
(keys) | Parameter Description |
|---|
| direct | true when principal is directly a member of the role.
The default value is false. Possible values are: |
|