IWFAdminService svc = GetAdminService();
string userName = ...// for example, "vit-34\\ap_svc"
try
{
string[] accessNames = svc.GetAccessRightNames();
int[] userRights = svc.GetAccessRights(userName);
Console.WriteLine("The user has the following rights:");
foreach (int rightCode in userRights)
{
Console.WriteLine(accessNames[rightCode]);
}
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
/*
This example produces the following results:
The user has the following rights:
Register and modify the user information
Unregister a user
Add and modify the role information
Remove a role
Add and modify the group information
Remove a group
Modify/View the system configuration
Add a process definition
Checkin and checkout a process definition
Delete and disable a process definition
...
*/