Symptoms
- Cannot open the Protect application
- In Protect, you see the message:
You have not been granted access, please see the system administrator to configure your role. - You see this message even if you are the only administrator for the Protect application
Purpose
This article provides information to regain access to the Protect console if you have set your own user account to a no access level with the Role-Based Administration function.
Cause
This issue occurs because of an incorrect configuration within Protect's Role Based Administration features. These features are configured in underManage>User Role Assignment.
Resolution
Download and run the attached SQL Script against your database.
This script will remove all entries from the dbo.RoleUsers table.
How to run a SQL Query against your Protect database
You can also copy the text into the query manually:
/***********************************************************************************/ /* Disclaimer: */ /* */ /* Executing these SQL Statements is at your own risk. Customers should understand */ /* these SQL Statements prior to executing them. Shavlik does not warrant that the */ /* SQL Statements will be uninterrupted or error-free. The entire risk as to the */ /* results and performance of the SQL Statement is assumed by person executing the */ /* the SQL Statements. Shavlik is not responsible for the damage caused by */ /* executing these SQL Statements. */ /***********************************************************************************/ /***********************************************************************************/ /* Important */ /* !!!!Backup you database before executing this SQL Script!!!! */ /***********************************************************************************/ DELETE FROM dbo.RoleUser |
Alternative Resolution
To resolve this issue:
- Ensure that SQL Server Management Studio corresponding to your SQL version is installed.
To download SQL Server Management Studio for Express editions, see:- SQL Server 2005 – http://www.microsoft.com/download/en/details.aspx?id=8961
- SQL Server 2008 – http://www.microsoft.com/download/en/details.aspx?id=7593
- SQL Server 2008 R2 – http://www.microsoft.com/download/en/details.aspx?id=22985
- SQL Server 2012: http://www.microsoft.com/en-us/download/details.aspx?id=35579
- Open SQL Server Management Studio and log in to the SQL server where the Protect database resides.
- Expand Databases.
- Expand your Protect database.
- Expand Tables.
- Locate the table dbo.RoleUsers.
- Right-click the dbo.RoleUsers table and click Open Table.
Note: In some versions, you may have to use the Select top 1000 Rows option. - Delete any rows in the table by a right-click on the row and Delete.
Note: Ensure not to delete the table. - You should now be able to open the Protect application.
Affected Product(s)
- Shavlik Protect 9.x
- vCenter Protect 8.x