Click or drag to resize
UserInfoExtractRolesUsedByUsers Method
Under rare (and probably invalid) circumstances, a user can have a role that's actually not part of the application's regular role definitions. This function will give you a map of all the roles used by users in the list, using the role Id as the key. In most cases it will overlap 100% with the list of roles reported by GetRoleInfo. In the above described situation, it might contain more.

Namespace:  Intuit.Ipp.Data
Assembly:  Intuit.Ipp.Data (in Intuit.Ipp.Data.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax
C#
public static IDictionary<string, RoleInfo> ExtractRolesUsedByUsers(
	IEnumerable<UserInfo> uis
)

Parameters

uis
Type: System.Collections.GenericIEnumerableUserInfo
a UserInfo collection, in most cases a list of all users in an instance

Return Value

Type: IDictionaryString, RoleInfo
Map of role id to RoleInfo object for all roles assigned to these users
See Also