Answered

How can i filter users listbox by positions

Dear all,

I need to filter a users ListBox field by a given positions.

How can i do this ?

Thanks for your help

Comments (3)

photo
1

Dear Rabah,

There is a method to return users depending a position. You can obtain a list of the users who hold a certain Position within the organization using the getUsersForPosition function.This function will return a list of user's identifiers that comply with the Position.

The syntax of the function is:

  1. CHelper.getUsersForPosition(posName)

For further information: http://help.bizagi.com/bpm-suite/en/index.html?get_users_based_on_the_organiz.htm

photo
1

Dear Juan,

I have created some positions under organization (see attached file).

i have also created an expression to retrieve the list of users depending of the position as follow:

UsersArray=CHelper.getUsersForPosition("IT-Manager");

I did some tests wwith differeent positions name.

The result was empty for all the different positions tested except for Administrator.

How can you explaain this issue (i used position name as parameter name and not the display name)

Thanks & best regards

photo
2

Dear Rabah,

Probably you have missed to add positions to your users. It is required to get a number of users.

Please check the following screen:

useradmin4

For further information: http://help.bizagi.com/bpm-suite/en/index.html?users_administration.htm

Regards