Commands used to manage Snap Creator user access

Download PDF of this page

You can perform Snap Creator RBAC actions using CLI commands.

The following table provides the command-line equivalent for Snap Creator GUI-based RBAC actions:

RBAC area Action Command and associated parameters

Users

Create a new user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action userAdd
--username user_name
--userPwd user_passwd
--verbose

Delete a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action userDelete
--username user_name
--verbose

List all users.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action userList
--verbose

List all assigned users for a role.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action userListAssigned
--roleName role_name
--verbose

List all users who are assigned a profile.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--profile Profile
--action userListForProfile
--verbose

Roles

Create a new role.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action roleAdd
--roleName role_name
--roleDesc role_description
--verbose

Delete a role.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action roleDelete
--roleName role_name
--verbose

Assign a role to a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action roleAssign
--userName user_name
--roleName role_name
--verbose

Unassign a role from a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action roleUnassign
--userName user_name
--roleName role_name
--verbose

List all assigned roles for a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action roleListAssigned
--userName user_name
--verbose

Permissions

Create a new permission.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action permAdd
--permName permission_name
--permDesc permission_description
--verbose

Delete a permission.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action permDelete
--permName permission_name
--verbose

Assign a permission to a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action permAssign
--permName permission_name
--roleName role_name
--verbose

Unassign a permission from a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action permUnaspermission_namesign
--permName
--roleName role_name
--verbose

List all permissions.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action permList
--verbose

List all permissions assigned to a role.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action permListAssigned
--roleName role_name
--verbose

Operations

Assign an operation to a permission.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action opAssign
--opName operation_name
--permName permission_name
--verbose

Unassign an operation from a permission.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action opUnassign
--opName operation_name
--permName permission_name
--verbose

List all operations.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action opList
--verbose

List all operations assigned to a permission.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action opListAssigned
--permName permission_name
--verbose

Profiles

Assign a profile to a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--profile Profile
--action profileAssign
--userName user_name
--verbose

Unassign a profile from a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--profile Profile
--action profileUnassign
--userName user_name
--verbose

List all profiles assigned to a user.

snapcreator
--server IP
--port Port
--user User
--passwd Password
--action profileListForUser
--userName user_name
--verbose