Click or drag to resize

UserSecurityServicesDeleteRole Method

Permanently deletes a seurity role from the system. All users, user groups, and permissions associated to this role will be disassociated from the role, but not be deleted.

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 DeleteRole(
	Guid sessionId,
	string roleName
)

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 role to be deleted.
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.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also