Click or drag to resize

UserSecurityServicesSetRolePermissions Method

Sets the security permissions for a security role. All existing permissions associated to the role will be removed and replaced by the new list or permissions.

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

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
roleName
Type: SystemString
The friendly name of the security role
permissions
Type: System.Collections.GenericIEnumerablePermission
A list of Permission objects that are to be associated to the specified security role.>
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotAuthorizedExceptionOccurs if the current user is not authorized to use this feature.
ArgumentExceptionOccurs if any of the parameters are invalid.
RoleNotFoundExceptionThrown if role specified by the roleName parameter does not exist.
See Also