Displays information related to the specified StorMan user.
Syntax
|
Parameters
–name user
Selects the StorMan user to be listed. If –name
is not specified:
- if the caller of the command has the role
storadmin :
all StorMan users are shown.
- if the caller of the command has the role
storinfo :
only the callers userid is shown.
All parameters above can be specified partially using ‘*’ as wildcard.
–format format
Specifies the output format. Refer to the description of the "Format parameter".
Return codes
Error Code | Name | Error Type |
0 |
| Function successful. |
3 |
| Version not supported. |
7 |
| Specified parameters invalid. |
13 |
| Error in StorMan communication between client and server |
16 |
| Unexpected error in function. |
36 |
| User / password for StorMan not valid |
Example
Output for user with –format std
(default)
storauth user –show –name my*
user myself roles: StorAdmin
Output for user with –format xmlp
storauth user -show -name s* -format xmlp
<Response> <ReturnCode> <Code>STORMAN_OK</Code> <CodeNumber>0</CodeNumber> <Text>successful</Text> <SubCode>0</SubCode> <SubCodeText>STORMAN_SUB_NONE</SubCodeText> <MessageID>53850</MessageID> </ReturnCode> <Result> <Authorizations> <Authorization> <User>service</User> <Roles> <Role>STORMAN_USER_ROLE_STOR_ADMIN</Role> </Roles> </Authorization> <Authorization> <User>storadm</User> <Roles> <Role>STORMAN_USER_ROLE_INFO</Role> </Roles> </Authorization> </Authorizations> </Result> </Response>