2012-01-25 50 views
1

我已經使用FBA記錄了Sharepoint 2010中的FBA用戶,並且需要知道它具有的FBA角色。 SPContext.Current.Web.AllRolesForCurrentUser返回非FBA角色。
如何獲得當前FBA用戶的FBA角色?我的問題Sharepoint 2010中的當前用戶和FBA角色

回答

1

我已經找到解決方案,這是非常簡單的:

// Gets a value indicating whether the currently logged-on user is in the specified role 
System.Web.Security.Roles.IsUserInRole("Provider"); 
相關問題