FME Server .NET API

IFMEApplicationResource.SetAssignedPermissions Method 

Sets assigned permissions for the specified user roles of this application resource. Note: If no permissions are assigned, then the roles will no longer be assigned to the application resource.

[Visual Basic]
Sub SetAssignedPermissions( _
   ByVal roleNames As String(), _
   ByVal permissionNames As String() _
)
[C#]
void SetAssignedPermissions(
   string[] roleNames,
   string[] permissionNames
);

Parameters

roleNames
the user role
permissionNames
permissionNames the name of the permissions to assign for the specified user roles. An empty list will de-assign the role from this resource.

See Also

IFMEApplicationResource Interface | IFMEApplicationResource Members | Safe.FMEServer.API.Security Namespace