[SERVER-52738] Resolve inconsistency between usersInfo and rolesInfo Created: 10/Nov/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Sara Golemon Assignee: Backlog - Security Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Security
Participants:

 Description   

The {usersInfo:...} command includes an `_id: 'username.dbname'` field for the document as stored in the local users collection.

The {rolesInfo:...} command does not since it was originally implemented to pull data from the RoleGraph which did not synthesize this data back in when serializing.

We should make a decision on whether these two two commands should be consistent and how. Options:

  1. Leave them inconsistent.
  2. Remove `_id` from {usersInfo:...} output as it is redundant.
  3. Add an `_id` field to {rolesInfo:...} to gain consistency without breaking current callers of {usersInfo:...}

Generated at Thu Feb 08 05:28:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.