Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

storauth user -show

&pagelevel(5)&pagelevel

Displays information related to the specified StorMan user.

Syntax

storauth user –show [ –name user ] [ –format format ]

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

STORMAN_OK

Function successful.

3

STORMAN_VER_NOT_SUPP

Version not supported.

7

STORMAN_INV_PARAMETERS

Specified parameters invalid.

13

STORMAN_COMMUNIC_ERROR

Error in StorMan communication between client and server

16

STORMAN_FAULT

Unexpected error in function.

36

STORMAN_AUTH_FAILED

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>