Programmatically Look Up User Types for Unspecified Users?

Is there a way, in LS or formula, to programmatically achieve the equivalent of clicking the “Look Up User Types for ‘Unspecified’ Users” button in the Advanced section of the ACL?

Subject: Programmatically Look Up User Types for Unspecified Users?

Yes, it’s possible using @formulas, and it’s possible in LS. You could write a script that looks the entries up in the appropriate views in the addressbook ( ($Users) for users & groups, ($Servers) for servers - it may be necessary to use other views, since the ($Users) view may not contain all groups)…You could even use fulltextsearch, really.

Anyway, you can then use the field “Type” to determine what you are dealing with. It’s Person for people, Group for groups, Server for servers.

Or you can use the @namelookup function, and query for ‘Type’ eg.

@namelookup( [noupdate]; “tom bosmans/gwbasics” ; “Type” ) will return “Person”

cheers,

Tom