Click or drag to resize

UserSecurityServicesGetUserPermissions Method

Retrieves the security permissions associated to the specified user.

Namespace:  FactoryLogix.xTend.Configuration
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public IEnumerable<Permission> GetUserPermissions(
	Guid sessionId,
	string userName
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
userName
Type: SystemString
The user name of the user whose permissions are being retrieved.

Return Value

Type: IEnumerablePermission
A list of Permission objects that are associated to the user specified by the userName parameter.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
ArgumentExceptionOccurs if any of the parameters are invalid.
UserNotFoundExceptionThrown if user specified by the userName parameter does not exist.
See Also