Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-6352

Generating a list of Crowd users added to groups on or after a specific date is not possible using the Crowd REST APIs

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • REST
    • None
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      For auditing purposes (to potentially reduce the licensed users count), customers may want to use the Crowd REST APIs to generate a list of users and their group memberships for any groups they were added to on or after a specific date. This does not appear to be possible in the current implementation, as the HTTP responses don't include the timestamps that would show when a user was added to a group.

      Suggested Solution

      In the Crowd Group Memberships API, include the timestamp when the user was added to a group for the 'Search users' GET request.

      Why This Is Important

      It would help to determine if any users were unintentionally added to certain groups and remove them as needed to reduce the number of licensed users.

      Workaround

      Query the Crowd database directly like this:

      SELECT u.user_name, STRING_AGG(g.group_name, ', ' ORDER BY g.group_name ASC) AS groups
      FROM cwd_user u
               JOIN cwd_membership m ON u.id = m.child_id
               JOIN cwd_group g ON m.parent_id = g.id
      WHERE m.created_date >= '2024-01-01'
      GROUP BY u.user_name
      ORDER BY u.user_name;
      

      If we can get the same results using the REST API, that would avoid having to directly access the database.

            [CWD-6352] Generating a list of Crowd users added to groups on or after a specific date is not possible using the Crowd REST APIs

            SET Analytics Bot made changes -
            Support reference count New: 1
            Jim Mulcahey created issue -

              Unassigned Unassigned
              7b5bc049bd2b Jim Mulcahey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: