Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display a list of users within a role 1

Status
Not open for further replies.

ChristianJazz

Programmer
May 27, 2004
1
FR
Hi,

I'd like to design a field displaying a list of Users that have a Role within the LCA. For example displaying the users that have the role "Director" in the LCA of the base ?

Thank you !!!

Christian
 
There is no formula to do that, since @UserRoles only gets the roles for the current user.
But you can code a script that recovers the ACL object of the current database. From there, get the ACLEntry corresponding to the role you wish to display, and iterate through the contents to get your list.
Of course, while you iterate, it would be a good idea to populate a field with the results, to allow you to display them in a document.

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top