2.5. existsuser

The exists tool allows to check whether a user exists in a given context. It uses either the id or the username of the user

2.5.1. Parameters

-h,--helpPrints a help text
--environmentShow info about commandline environment
--nonlRemove all newlines (\n) from output
-c,--contextid <integer>The id of the context
-i,--userid <integer>Id of the user
-u,--username <string>Username of the user

2.5.2. Return value

0 on success

1 on failure

2.5.3. Mandatory parameters

contextid {adminuser adminpass} and either userid or username

2.5.4. Command output

On success:

user <userid or username> exists

On failure:

user <userid or username> does not exist>

2.5.5. Example

root@oxhe~# existsuser -c 123 -i 3 -u an_existing_username

user an_existing_username exists