[DOCS-13735] [Atlas] Atlas API - Delete user Syntax Created: 26/Jun/20  Updated: 29/Oct/23  Resolved: 29/Jun/20

Status: Closed
Project: Documentation
Component/s: Atlas
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Greg Cox Assignee: Zachary Carr
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 3 years, 32 weeks, 2 days ago
Epic Link: DOCSP-8838
Story Points: 1

 Description   

Description

Using API as per https://docs.atlas.mongodb.com/reference/api/database-users-delete-a-user/ to delete x.509 user. Doc syntax didn't work. Had to escape the $external with "\":

 

curl -i -u "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest -X DELETE "[https://cloud.mongodb.com/api/atlas/v1.0/groups/

{GROUP|https://cloud.mongodb.com/api/atlas/v1.0/groups/%7BGROUP] ID}

/databaseUsers/\$external/{User}"

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Zachary Carr [ 29/Jun/20 ]

Merged to master & published.

Comment by Zachary Carr [ 29/Jun/20 ]

Hi greg.cox, sorry about the delay - yes, I've tested the other endpoints and you always have to escape $external or it won't actually be part of the query.

Thanks for taking a look! I'll merge this shortly.

Comment by Greg Cox [ 29/Jun/20 ]

Hi zach.carr. I checked the link and looks good to me. I didn't test the other apis other than delete but assume you guys have and that referencing $external will work the same ?

Cheers

Greg

Comment by Zachary Carr [ 29/Jun/20 ]

Thanks greg.cox, that sounds good!

If it's easier for you, here is the Delete a DB User staging link where I've added the escape \. The exact same change is on Get One and Update Users. If that looks good to you, feel free to approve the change here on the ticket instead. Up to you.

Comment by Greg Cox [ 29/Jun/20 ]

Hi zach.carr. I don't have access to this guthub repo. Have requested and will review once approved. Cheers

Comment by Zachary Carr [ 26/Jun/20 ]

Hi greg.cox, if you have a moment could you take a look at this PR and confirm these changes are what you had in mind? I've updated the get, update and delete pages with the "\".

https://github.com/10gen/cloud-docs/pull/1701

Thanks for filing this!

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