SharePoint中取得ACL和組中使用者數量,sharepointacl
SharePoint中取得ACL和組中使用者數量
1. 取得ACL的數量:
select COUNT(ra.PrincipalId) as [Count],p.ScopeUrl
from [WSS_Content_80].[dbo].[RoleAssignment] ra with(nolock)
join [WSS_Content_80].[dbo].[Perms] p with(nolock) on p.SiteId = ra.SiteId and p.ScopeId = ra.ScopeId
group by p.ScopeUrl
order by [Count] desc
2. 取得組中使用者的數量:
select COUNT(m.MemberId) as [Count], g.Title as [Group-Title]
from [WSS_Content_80].[dbo].[GroupMembership] m with(nolock)
join [WSS_Content_80].[dbo].[Groups] g with(nolock) on m.GroupId = g.ID and m.SiteId = g.SiteId
group by g.Title
order by [Count] desc
在Sharepoint2010中Sharepoint使用者組中添加了AD安全性群組許可權不可以控制
這個確實是sharepoint和ad緩衝的問題,我記得sharepoint裡有一個和ad同步的services,把那個service開啟後,設定自動已耗用時間,運行後就可以了。我以前也遇到過這個問題,我們給客戶設定的是一天運行一次這個services,一天的時間一般的客戶都是可以接受的。
sharepoint裡什是域組,他與使用者組有什不同?
域組在sharepoint裡可以看成一個使用者,只是在域組裡的使用者都有域組在SharePoint的許可權,
域組可以加到sharepoint使用者組裡,在開發層面在可以判斷使用者在使用者組裡,但無法判斷使用者在使用者組裡的域組裡。