GetExecGroupUsers

Syntax

BpmExecGroupUsersResult GetExecGroupUsers(string mon, string groupSid)

Parameters

mon. Repository connection moniker.

groupSid. Group of users security identifier.

Description

The GetExecGroupUsers operation gets the list of users included in the group selected as a process step executor.

Comments

The operation is used to get the list of users who can be selected as step executors during process execution. To execute the operation, in the tMb field specify moniker of opened repository connection, and in the groupSid field specify group of users identifier. The moniker can be obtained on executing the OpenMetabase operation. The group of users identifier can be obtained in step settings in the execGroup.sid field.

The operation results in simple information about users containing user identifiers and names.

Example

Below is the example of getting the list of users included in the group selected as step executor. The request contains repository connection moniker and group of users identifier. The response contains the obtained list of users.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetExecGroupUsers xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">MMDKCJLDFPEFGOAEJDFICNAECCEDDNNEFKFPIDCLMIKHNLIA!M</mon>
  <groupSid xmlns="">PS-2-1</groupSid>
  </GetExecGroupUsers>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetExecGroupUsersResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<users xmlns="">
<it>
  <sid>PS-1-1</sid>
  <name>ADMIN</name>
  </it>
<it>
  <sid>PS-1-247817</sid>
  <name>IVANOV</name>
  </it>
  </users>
  </GetExecGroupUsersResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetExecGroupUsers" :
{
"mon" : "MMDKCJLDFPEFGOAEJDFICNAECCEDDNNEFKFPIDCLMIKHNLIA!M",
"groupSid" : "PS-2-1"
}
}

JSON response:

{
"GetExecGroupUsersResult" :
{
"users" :
{
"it" :
[
{
"sid" : "PS-1-1",
"name" : "ADMIN"
},
{
"sid" : "PS-1-247817",
"name" : "IVANOV"
}
]
}
}
}
public static BpmExecGroupUsersResult GetExecGroupUsers(string moniker, string sid)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetExecGroupUsers()
{
groupSid = sid,
mon = moniker
};
// Get list of users included in the group of users
var result = somClient.GetExecGroupUsers(tGet);
return result;
}

See also:

Working with Processes