Wondering how to assign Super Admin Role in OnApp? We can help you.
OnApp allows you to assign roles to users. Each role has a set of permissions associated with it.
As part of our Server Virtualization Technologies and Services, we assist our customers with several OnApp queries.
Today, let us see how our Support Techs assign roles to users.
How to assign Super Admin Role in OnApp?
By assigning users to different roles you can control what those users can do.
Create New Role
To add a new role follow below steps.
- Firstly, go to Control Panel > Roles.
- Then, press the “+” button or click the Create Role button at the bottom of the screen.
- On the screen that follows, give the role a name (label) and use the radio buttons to set its permissions.
- Based on default role – move the slider to the right to create the role based on one of the default roles.
Role based on – select the Administrator or User option from the dropbox
- Finally, click the Save button to finish.
On the Add New Role screen there are also buttons to give full access to the role (this automatically checks all relevant boxes to allow that role to perform any action) and to deselect all permissions.
Make sure to enable either the Select resources manually on virtual server creation or the Select instance package on virtual server creation permission, or both if required.
If the user does not have any of these permissions enabled, they will not able to create virtual servers.
Edit Role
To edit a role follow below steps:
- Firstly, go to Control Panel > Roles.
- You’ll see a list of all roles on your system and a number of users assigned to each role.
- Then, click the Actions button next to the role you want to change, then click Edit.
- On the screen that appears, change the role’s description and permissions, then click the Save button.
Clone Role
You can copy the role with all its permissions in OnApp. To clone a role:
- Firstly, go to Control Panel > Roles.
- You’ll see a list of all roles in your system and a number of users assigned to each role.
- Then, click the Actions button next to the role you want to change, then click Clone.
Now the role is copied with the name of the original role proceeded with the date and time suffix.
To change the role’s name or the set of permissions, edit its details:
- Go to Control Panel > Roles.
- You’ll see a list of all roles in your system and a number of users assigned to each role.
- On the screen that appears, click the Edit (pencil) icon.
- Then, change the permissions and role’s label if required.
- Finally, click Save to apply the changes.
To clone a default role to a new user, go to Control Panel > Roles >Templates Role tab.
Clicking on the label of a role, you will see the template role details and the assigned permissions.
Delete Role
To delete a role follow below steps:
- Firstly, go to Control Panel > Roles.
- You’ll see a list of all roles in your system.
- Then, click the Actions button next to the role you want to delete, then click Delete. You’ll be asked for confirmation before the role is removed.
Create and Manage Super Admin Role in OnApp
Today, let us see the steps followed by our Support Techs to assign Super Admin Role in OnApp.
When a user enables the Enable Super Admin permissions option via Settings, the option activates the permission but the corresponding role does not appear in the list of roles at Dashboard > Roles and is not assigned to any user.
To create the role and to assign it to a particular user, a user runs two separate rake tasks.
Firstly to create the Super Admin role, go to the console and run the following rake task:
rake role:generate_super_admin
Next, assign this role to a specific user:
rake 'role:assign_super_admin_to_user[login]'
To delete the Super Admin role, run the following rake task:
rake role:destroy_super_admin
[Need help with the process? We’d be happy to assist]
Conclusion
In short, today we saw how our Support Techs assign Super Admin Role in OnApp.
0 Comments