|
CRM 4 UserQuery Privileges for System Administrators |
|
|
|
Written by Carlton Colter
|
|
Wednesday, 24 December 2008 16:00 |
|
One of the problems I noticed in mindSHIFT's upgrade to CRM 4 was that the System Administrators group did not have access to assign other people's saved advanced finds (user queries). This is extremely annoying because I have a single aspx page that uses the CRM SDK to allow a system administrator to move any saved view from being owned by one person to another.
Saved views are great for the organization, departments, and teams, but when a team uses them, often times they have someone create and share the views, then they leave the company or move to a different group within the company. They either can't or no longer wish to be responsible for the advanced finds they have created and shared out with their fellow CRM users.
My custom page allows me to assign those views to someone else, allowing them to move the responisibility to another CRM user.
To update the CRM privileges to allow System Administrators full access (except for read) to all views, you can run the following sql code against the database
SQL Code:
UPDATE RolePrivileges SET PrivilegeDepthMask=128 WHERE RolePrivilegeId IN
(
SELECT RolePrivilegeId FROM RolePrivileges r
INNER JOIN PrivilegeBase pb ON r.privilegeid=pb.privilegeid
INNER JOIN RoleBase rb ON r.roleid = rb.roleid
WHERE pb.Name in
('prvAssignUserQuery',
'prvShareUserQuery',
'prvWriteUserQuery',
'prvDeleteUserQuery',
'prvCreateUserQuery'
)
AND rb.Name = 'System Administrator'
)
|
|
Last Updated on Wednesday, 24 December 2008 16:11 |