[DOCS-5743] Lookup a user by username with the Cloud Manager Public API Created: 29/Jun/15  Updated: 11/Jan/17  Resolved: 07/Aug/15

Status: Closed
Project: Documentation
Component/s: Cloud Manager
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Task Priority: Major - P3
Reporter: Michael Benoit Assignee: Bob Grabar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Participants:
Days since reply: 8 years, 27 weeks, 5 days ago

 Description   

An old ticket that was never documented:
MMSP-3637



 Comments   
Comment by Michael Benoit [ 07/Aug/15 ]

Here's the endpoint:
/api/public/v1.0/users/byName/username@whatever.com

Example:

curl --digest -u michael.benoit@10gen.com:xxx "https://cloud.mongodb.com/api/public/v1.0/users/byName/bgrabar?pretty=true"
{
  "emailAddress" : "bob.grabar@mongodb.com",
  "firstName" : "Bob",
  "id" : "50291d65e4b0ec5da2761e03",
  "lastName" : "Grabar",
  "links" : [ {
    "href" : "https://cloud.mongodb.com/api/public/v1.0/users/50291d65e4b0ec5da2761e03",
    "rel" : "self"
  }, {
    "href" : "https://cloud.mongodb.com/api/public/v1.0/users/50291d65e4b0ec5da2761e03/whitelist",
    "rel" : "http://mms.mongodb.com/whitelist"
  } ],
  "mobileNumber" : "xxx",
  "roles" : [ {
    "roleName" : "GLOBAL_READ_ONLY"
  }, {
    "groupId" : "5421e046e4b09da19268b17f",
    "roleName" : "GROUP_OWNER"
  }, {
    "groupId" : "5434915fe4b04c4baa772cf3",
    "roleName" : "GROUP_OWNER"
  } ],
  "username" : "bgrabar"
}

Also, I put a comment on the Pull Request.

Generated at Thu Feb 08 07:50:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.