*This post is locked for comments
*This post is locked for comments
Outstanding thanks Beat!
Hi Lyn,
I was looking for something about MR 2012 and came accros your post. Since the cotent is already over 2 years old, I adjusted the code for the latest MR2012 CU15 and reformated it :
--MR Security Script #1
--MR UserNames, along with DomainNames, MR Role assignment and MR Group assignment
SELECT a.UserName
,b.[Name] AS DomainName
,CASE a.RoleType
WHEN 5
THEN 'Admin'
WHEN 4
THEN 'Designer'
WHEN 3
THEN 'Generator'
END RoleDescr
,d.[Name] AS GroupID
,d.[Description] AS GroupName
FROM [Reporting].[SecurityUser] a(NOLOCK)
JOIN [Reporting].SecurityPrincipal b(NOLOCK) ON a.UserID = B.ID
LEFT JOIN Reporting.SecurityGroupUser c(NOLOCK) ON a.UserID = c.UserID
LEFT JOIN Reporting.SecurityPrincipal d(NOLOCK) ON c.GroupID = d.ID
ORDER BY d.[Description]
,a.RoleType
--MR Security Script #2
--Company Access as assigned by Group
SELECT c.[Name] AS GroupID
,c.[Description] AS GroupName
,b.Code AS CompanyID
,b.[Name] AS CompanyName
FROM Reporting.SecurityCompanyPermission a(NOLOCK)
JOIN Reporting.ControlCompany b(NOLOCK) ON a.CompanyID = b.[ID]
LEFT JOIN Reporting.SecurityPrincipal c(NOLOCK) ON a.PrincipalID = c.[ID]
ORDER BY c.[Name]
,b.Code
Thank you for sharing!
Well, that didn't show up so well! Sorry that I messed up the layout. However, rest assured that the scripts still work, and are valid.
These scripts worked for me.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156