Project

General

Custom queries

Profile

Actions

Bug #4971

closed

api/usergroups/:id does not return correct usergroup_members

Added by Daniel Khodaparast about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The api endpoint is not returning the correct membership ids. It appears to be returning incremented numbers. For an example of this, create a usergroup and assign random users to it. Do a curl request and observe how the usergroup_members probably don't match the ids of the actual users:

"usergroup_members":[16,17,18]

Take note of the highest value in usergroup_members and then add another member via the UI. Do a followup curl request and the list of ids should be an additional, plus one of the highest previous value.

"usergroup_members":[16,17,18,19]

Actual theoretical ids would be 3, 7, 12, 22.

#1

Updated by Dominic Cleal about 11 years ago

  • Status changed from New to Feedback
#3

Updated by Dominic Cleal about 11 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF