Have a requirement to provide a list of users within specific groups. I am trying to accomplish this via Query Builder in XIR3.1
If I do this:
select *
from ci_systemobjects
where si_kind = ‘usergroup’ and
si_name = ‘[group name here]’
This gives me a list of users in the group I select, BUT they are the object IDs, not the user name.
On the flip side, I’ve thought of querying users (select * from ci_systemobjects where si_kind = ‘user’) and returning only users in certain groups, but I cannot figure out how to do that. The user data returned shows the groups they belong to under the “usergroups” field, (its actually the group IDs) but I cannot figure out how to limit on this field in the where clause.
Relationship queries (and path queries) are perhaps the biggest gain in productivity I’ve experienced in my time with SDK development. No more boilerplate code to invent your own subquery logic. I see it as a glaring omission that they are not mentioned in the (enterprise) SDK development guide.