On This Page
Overview
This portion of the CLI exposes the ability to manage users, groups, and roles. For more information about access controls, visit the access control documentation.
Permissions
List the Permissions
The permissions are listed out by the category to which they belong.
parameter | description | required | default |
---|---|---|---|
search | Retrieve permissions that match the search criteria | optional |
Example 1: List all the permission categories and permissions
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli permissions list
ID Category Name 4f363d230da046108b00a4586ce75055 Connections List Connections, Manage Connections, Read Content, Write/Delete Content a2f88280c80c475a908d44ea752c0d94 Jobs List Jobs, Manage Jobs, Control Jobs (i.e. Start/Stop/Pause), Manage Templates, List Remote Sites, Manage Remote Sites, Invoke Remote Sites, Establish Remote Sites ab70847b71c042b1bae66461f5dda04c Security List Users and Groups, Manage Users and Groups, Manage Access Rights
Example 2: List permissions with the "manage" in the name
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli permissions list --search manage
ID Category Name 4f363d230da046108b00a4586ce75055 Connections Manage Connections a2f88280c80c475a908d44ea752c0d94 Jobs Manage Jobs, Manage Templates, Manage Remote Sites ab70847b71c042b1bae66461f5dda04c Security Manage Users and Groups, Manage Access Rights
[ { "id": "4f363d230da046108b00a4586ce75055", "name": "Connections", "permissions": [ { "name": "Manage Connections", "id": "294eee9539354739b194da1a879bc163" } ] }, { "id": "a2f88280c80c475a908d44ea752c0d94", "name": "Jobs", "permissions": [ { "name": "Manage Jobs", "id": "d9507ec76bf7414aa8a74a0c88c32a48" }, { "name": "Manage Templates", "id": "86b29346112b48528f8e4aeed0137262" }, { "name": "Manage Remote Sites", "id": "5e97f402d6b14a599eeba998d5d63044" } ] }, { "id": "ab70847b71c042b1bae66461f5dda04c", "name": "Security", "permissions": [ { "name": "Manage Users and Groups", "id": "e7e4f17053fa41489dfb026d18d6bc40" }, { "name": "Manage Access Rights", "id": "5a16a060c35d467882c007979926bdfe" } ] } ]
Show a Permission Category
This command will show the details of the specified permission category.
parameter | description | required | default |
---|---|---|---|
id | The ID of the permission category for which details will be shown | required |
The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli permissions show {{permissionsCategoryID}}
skysync-cli groups show ab70847b71c042b1bae66461f5dda04c
ID ab70847b71c042b1bae66461f5dda04c Category Security Name List Users and Groups, Manage Users and Groups, Manage Access Rights
[ { "id": "ab70847b71c042b1bae66461f5dda04c", "name": "Security", "permissions": [ { "name": "List Users and Groups", "id": "915fb2c972a3479ab3272b62507b7300" }, { "name": "Manage Users and Groups", "id": "e7e4f17053fa41489dfb026d18d6bc40" }, { "name": "Manage Access Rights", "id": "5a16a060c35d467882c007979926bdfe" } ] } ]
Roles
List the Roles
parameter | description | required | default |
---|---|---|---|
search | Retrieve roles that match the search criteria | optional | |
offset | Search offset | optional | 0 |
limit | Search page size | optional | 20 |
Example 1: List all the roles
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli roles list
ID Name 58c52f0a513e47b687b0f43ef40c3333 Job Administrators
[ { "id": "58c52f0a513e47b687b0f43ef40c3333", "name": "Job Administrators" } ]
Example 2: List roles with "administrator" in the name
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli roles list --search "administrator"
Example 3: List the roles skipping the first 5
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli roles list --offset=5
Example 4: List only 5 roles
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli roles list --limit 5
Show a Role
This command will show the details of the specified role.
parameter | description | required | default |
---|---|---|---|
id | The ID of the role for which details will be shown | required |
The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli roles show {{id}}
skysync-cli roles show 58c52f0a513e47b687b0f43ef40c3333
ID 58c52f0a513e47b687b0f43ef40c3333 Name Job Administrators Permissions Control Jobs (i.e. Start/Stop/Pause), List Jobs, Manage Jobs
[ { "id": "58c52f0a513e47b687b0f43ef40c3333", "name": "Job Administrators", "permissions": [ { "name": "Control Jobs (i.e. Start/Stop/Pause)", "id": "3560a25976504967bcd48a7e668a07a8" }, { "name": "List Jobs", "id": "bbd25a404cdc4e01baabd0b79394cbd8" }, { "name": "Manage Jobs", "id": "d9507ec76bf7414aa8a74a0c88c32a48" } ] } ]
If the ID entered does not correspond to an existing role, for example, if the ID is mistyped, the expected output is the following.
ID Name Permissions
null
Create a Role
This command provides the ability to create a role.
parameter | description | required | default |
---|---|---|---|
name | Name of the role | required | |
permissions | A comma separated list of the IDs of the permissions (not permission categories) that belong to this role |
Example 1: Create a new role
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information. The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli roles add {{roleName}}
skysync-cli roles add testRole
ID 865bb398aa1440fdb0cb680b2a6d30b3 Name testRole
[ { "id": "bd7b54fc421d4596860ec4b643d55948", "name": "testRole" } ]
Example 2: Create a new role with permissions
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information. The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli roles add {{roleName}} --permissions {{permissionsID}}, {{permissionsID}}, ...
skysync-cli roles add testRole --permissions 915fb2c972a3479ab3272b62507b7300,ffee260e389a42f7b23ce75b46b79e2e
Groups
List the Groups
parameter | description | required | default |
---|---|---|---|
parent | Retreive groups that belong to this parent group | optional | |
search, q | Retrieve groups that match the search criteria | optional | |
offset | Search offset | optional | 0 |
limit | Search page size | optional | 20 |
Example 1: List all the groups
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli groups list
ID Name Type d39d8ac9d43f44e4b92607cca5c27ecf Tenant 1 owner
[ { "id": "d39d8ac9d43f44e4b92607cca5c27ecf", "name": "Tenant 1", "type": "owner" } ]
Example 2: List groups with the "Tenant 1" in the name
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli groups list --search "Tenant 1"
Example 3: List the groups skipping the first 5
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli groups list --offset=5
Example 3: List the groups belonging to a specified parent group
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information. The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli groups list --parent={{parentGroupID}}
Show a Group
This command will show the details of the specified group.
parameter | description | required | default |
---|---|---|---|
id | The ID of the group for which details will be shown | required |
The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli groups show {{id}}
skysync-cli groups show d39d8ac9d43f44e4b92607cca5c27ecf
ID d39d8ac9d43f44e4b92607cca5c27ecf Name Tenant 1.1 Parent Tenant 1
[ { "id": "d39d8ac9d43f44e4b92607cca5c27ecf", "name": "Tenant 1.1", "parent": { "name": "Tenant 1", "id": "16acfe4815854d8c9adfc132c9c283a0" } ]
If the ID entered does not correspond to an existing group, for example, if the ID is mistyped, the expected output is the following.
ID Name Parent
null
Create a Group
This command provides the ability to create a group.
parameter | description | required | default |
---|---|---|---|
name | Name of the group | required | |
parent | The ID of the parent ownership group |
Example 1: Create a new group
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information. The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli groups add {{groupName}}
skysync-cli groups add "Tenant 1"
ID 74fb6f13b5c049c993536df30fe351f1 Name Tenant 1
[ { "id": "74fb6f13b5c049c993536df30fe351f1", "name": "Tenant 1" } ]
Example 2: Create a new group with a parent
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information. The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli groups add {{groupName}} --parent {{parentGroupID}}
skysync-cli groups add "Tenant 1.1" --parent d39d8ac9d43f44e4b92607cca5c27ecf
ID 74fb6f13b5c049c993536df30fe351f1 Name Tenant 1.1
[ { "id": "74fb6f13b5c049c993536df30fe351f1", "name": "Tenant 1.1" } ]
Users
List the Users
parameter | description | required | default |
---|---|---|---|
active | Only retrieve active users | optional | |
search, q | Retrieve the users that match the search criteria | optional | |
offset | Search offset | optional | 0 |
limit | Search page size | optional | 20 |
Example 1: List all the users
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli users list
ID Login Name E-Mail Enabled Group 1ca2185affce4146befc2a397393af22 admin Administrator true 4d8958f9b7d54bf7b70333531c5d3f3c tenant1 Tenant 1 true Tenant 1
[ { "id": "1ca2185affce4146befc2a397393af22", "login": "admin", "name": "Administrator", "disabled": false }, { "id": "4d8958f9b7d54bf7b70333531c5d3f3c", "login": "tenant1", "name": "Tenant 1", "disabled": false, "group": { "name": "Tenant 1", "id": "d39d8ac9d43f44e4b92607cca5c27ecf" } } ]
Example 2: List users with an email address of "test@example.com"
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli users list -q test@example.com
Example 3: List users by status
Users can be retrieved based on a given status. The status can be either "active" or "disabled." The example below shows retrieving all active users. The authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli users list --status=active
Example 4: List the users skipping the first 5
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information.
skysync-cli users list --offset=5
Show a User
This command will show the details of the specified user.
parameter | description | required | default |
---|---|---|---|
id | The ID of the user for which details will be shown | required |
The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli users show {{id}}
skysync-cli users show 5a45d35b4a82472795d239d06012cde8
ID 5a45d35b4a82472795d239d06012cde8 Login user Name user E-Mail user@test.com Enabled true Group Tenant 1.4 Roles Job Administrators Permissions Control Jobs (i.e. Start/Stop/Pause), List Jobs, Manage Jobs
[ { "id": "5a45d35b4a82472795d239d06012cde8", "login": "user", "name": "user", "email": "user@test.com", "disabled": false, "group": { "name": "Tenant 1.4", "id": "16acfe4815854d8c9adfc132c9c283a0" }, "roles": [ { "name": "Job Administrators", "id": "58c52f0a513e47b687b0f43ef40c3333" } ], "permissions": [ { "name": "Control Jobs (i.e. Start/Stop/Pause)", "id": "3560a25976504967bcd48a7e668a07a8" }, { "name": "List Jobs", "id": "bbd25a404cdc4e01baabd0b79394cbd8" }, { "name": "Manage Jobs", "id": "d9507ec76bf7414aa8a74a0c88c32a48" } ] } ]
If the ID entered does not correspond to an existing user, for example, if the user was already deleted, the expected output is the following.
ID Login Name E-Mail Enabled true Group Roles Permissions
null
Create a User
This command provides the ability to create a user.
parameter | description | required | default |
---|---|---|---|
new-user-username | Login username for the new user | required | |
new-user-password | Password for the new user | required | |
new-user-email | The e-mail address for the new user | optional | |
new-user-display-name | The display name for the new user | optional | |
new-user-group | The ID of the group to which the new user will belong | optional | |
new-user-roles | A comma separated list of the IDs of the rols to which the new user will belong | optional |
Example 1: Create a new user
In the following example, the authentication parameters are provided within the configuration file. See the authentication section for more information. The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli users add {{username}} {{password}} --new-user-email {{emailAddress}} --new-user-display-name {{displayName}} --new-user-group {{groupID}} --new-user-roles {{role1ID}},{{rol2ID}},...
skysync-cli users add user1 somePassword --new-user-email user1@example.com --new-user-display-name User1 --new-user-group 4d8958f9b7d54bf7b70333531c5d3f3c --new-user-roles 58c52f0a513e47b687b0f43ef40c3333,0f08d24ee50b42f1a1fb56497d0cabc9
ID 93d88143ee7248d28c95d0adc6ac863c Login user1 Name User1 E-Mail user1@example.com Enabled true
[ { "id": "93d88143ee7248d28c95d0adc6ac863c", "login": "user1", "name": "User1", "email": "user1@example.com", "disabled": false } ]
Delete a User
This command will delete the specified user
parameter | description | required | default |
---|---|---|---|
id | The ID of the user to be deleted | required |
The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli users delete {{id}}
skysync-cli users delete 5dc531df34554edd96c31272262ad950
If the ID entered does not correspond to an existing connection, for example, if the user was already deleted, the expected output is the following.
The user could not be deleted.
The response is only available in the default format. If JSON output is specified, no output will be provided.
Password Administration
Click here for more information about this feature.
Changing the Current User's Password
This command will change the current user's password
parameter | description | required | default |
---|---|---|---|
old-password | The original password for the current user | required | |
new-password | The new password for the current user | required |
The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli users password change {{old-password}} {{new-password}}
skysync-cli users password change oldPassword newPassword
ID 4d8958f9b7d54bf7b70333531c5d3f3c
[ { "id": "4d8958f9b7d54bf7b70333531c5d3f3c" } ]
Resetting a Users Password
This command will reset the specified user's password
parameter | description | required | default |
---|---|---|---|
id | The ID for the user for which the password is being reset | required | |
new-password | The new password for the current user | required |
The parameters within the two curly braces (including the braces) will need to be replaced with valid values.
skysync-cli users password reset {{userID}} {{new-password}}
skysync-cli users password reset 4d8958f9b7d54bf7b70333531c5d3f3c newPassword
ID 4d8958f9b7d54bf7b70333531c5d3f3c
[ { "id": "4d8958f9b7d54bf7b70333531c5d3f3c" } ]