SessionDataExtensionsGetAccessibleEnvironmentsForUser Method

Returns a list of environments the currentUser has access to.

Definition

Namespace: MobileTrack.DataContainers.Extensions
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static List<Guid> GetAccessibleEnvironmentsForUser(
	this UserSessionData currentUser
)

Parameters

currentUser  UserSessionData
Current user

Return Value

ListGuid
Environments the user has access to.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UserSessionData. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Do not use this method for accounts that are mobiletrack accounts, or have a scope assignment to the main environment. their role.

See Also