Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2015-07-31 00:55:41

Ironykins
Member
Registered: 2015-06-22
Posts: 9

Check if a user belongs to a group.

Hey devs!

We have some logic that runs based on whether or not a user belongs to a specific group. Currently, the only way we can do this is by grabbing all user and group data, and filtering it out clientside. This is a bit of a hassle performance wise.

Could you add some API calls to do this? Ideally, a call like users.IsUserInGroup(mixed userId, int groupId) coupled with a call like users.GetGroupIdFromGroupName(string groupName) would work, but we'll be happy as long as we're not searching through every single user and group to find a match.

Cheers!

Last edited by Ironykins (2015-07-31 16:24:52)

Offline

#2 2015-07-31 14:39:33

steve
Third Light Staff
Registered: 2013-06-06
Posts: 92

Re: Check if a user belongs to a group.

Hi Ironykins,

Thanks for the suggestion, I will log that in our feature request system.

Best Regards,
Steve

Offline

#3 2015-07-31 16:25:19

Ironykins
Member
Registered: 2015-06-22
Posts: 9

Re: Check if a user belongs to a group.

Thanks Steve!

Offline

#4 2015-08-20 15:14:04

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 96

Re: Check if a user belongs to a group.

Hi,

We are planning to add new methods, Users.GetUserDetails, which would provide the current group ID, Groups.FindGroup, which would return the group ID for a group name, and Groups.GetGroupDetails which would return information from a group ID. This should be available from IMS v6.1.9 onwards.

Dominic

Offline

Board footer