Skip to content

doc: Adds example & documentation for new mongodbatlas_cloud_user_org_assignment resource #3493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 41 commits into
base: CLOUDP-320243-dev-2.0.0
Choose a base branch
from

Conversation

maastha
Copy link
Collaborator

@maastha maastha commented Jul 11, 2025

Description

Adds example & documentation for new mongodbatlas_cloud_user_org_assignment resource

Link to any related issue(s): https://jira.mongodb.org/browse/CLOUDP-329817

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

@maastha maastha changed the base branch from master to CLOUDP-329813-cloud-user-org-ds July 11, 2025 22:35
@maastha maastha marked this pull request as ready for review July 11, 2025 22:40
@maastha maastha requested review from a team as code owners July 11, 2025 22:40
Copy link
Contributor

APIx bot: a message has been sent to Docs Slack channel


**NOTE**: Users with pending invitations created using the deprecated `mongodbatlas_project_invitation` resource or via the deprecated [Invite One MongoDB Cloud User to One Project](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-getorganizationuser#tag/Projects/operation/createProjectInvitation)
endpoint cannot be managed with this resource. See [MongoDB Atlas API](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-getorganizationuser) for details.
To manage such users with this resource, refer to our [migration guide]<link-to-migration-guide>.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as resource, correct migration guide link?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

data "mongodbatlas_cloud_user_org_assignment" "example_user_id" {
org_id = var.org_id
user_id = var.user_id
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all files in the example should finish with a new line. see https://gist.github.com/OleksiyRudenko/d51388345ea55767b7672307fe35adf3 to set it in the VS code settings

Copy link
Collaborator

@oarbusi oarbusi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once comments are addressed

Copy link
Contributor

@davidhou17 davidhou17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % nit

Base automatically changed from CLOUDP-329813-cloud-user-org-ds to CLOUDP-329812-cloud-user-org-resource July 15, 2025 22:45
Base automatically changed from CLOUDP-329812-cloud-user-org-resource to CLOUDP-320243-dev-2.0.0 July 16, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants