IT debris

Besuseradminclient – Managing users

· Remy

Warning! Out of date content.

In this post you can find some simple examples on how to use the besuseradminclient cli tool to manage your users.

Example 1: Add a user with email address user1@example.com to a BES called bes01, set the activation time to 12 hours and specify a password.

besuseradminclient.exe -bas_auth -username admin_user -password Password -add -b bes01 -group standard -wt 12 -w activate1 -u user1@example.com

Explanation:
-add : the command for adding users
-b : specify the BES server
-group : add the user to this group
-wt : enterprise activation expiry time in hours
-w : the enterprise activation password
-u : the username / email address

Example 2: Add a user with email address user1@example.com to a BES called bes01 with a random activation password.
The differences from the previous command are bold.

besuseradminclient.exe -bas_auth -username admin__user -password Password -add -b bes01 -group standard -wt 12 -wrandom -u user1@example.com

Explanation:
-wrandom : generates an activation password and mails it to the user

Example 3: Delete a user with email address user1@example.com.

besuseradminclient.exe -bas_auth -username admin_user -password Password -delete -u user1@example.com

Explanation:
-delete : the command for deleting users
-u : the username / email address

Example 4: Change an existing user by adding the user to a group called DEV.

besuseradminclient.exe -bas_auth -username admin_user -password Password -change -group DEV -u user1@example.com

Explanation:
-change : the command for changing users
-group : add the user to this group
-u : the username / email address

Example 5: Change an existing user by removing the user from a group called DEV. The differences from the previous command are bold.

besuseradminclient.exe -bas\_auth -username admin\_user -password Password -change **-cgroup** DEV -u user1@example.com

Explanation:
-change : the command for changing users
-cgroup : add the user to this group
-u : the username / email address

Example 6: Specify an enterprise activation password and expiry for an existing user.

besuseradminclient.exe -bas\_auth -username admin\_user -password Password **-change** **-wt** 12 **-w** activate1 **-u** user1@example.com

Explanation:
-change : the command for changing users
****-wt : enterprise activation expiry time in hours
-w : the enterprise activation password
-u : the username / email address

This is only a smal subset of possible commands. Consult the besuseracmindclient help for the full range of available options.