You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Adds users attribute to mongodbatlas_projects plural data source (#3451)
* WIP
* Fixed acceptance test
* Added a comment
* Added changelog
* Added users attribute to projects data source
* Added changelog and fixed docs
* Factored out users schema
* Refactored schemas and fixed test and doc
* Minor code review suggestions and fixed doc
---------
Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
Copy file name to clipboardExpand all lines: docs/data-sources/project.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -124,5 +124,7 @@ In addition to all arguments above, the following attributes are exported:
124
124
*`lastName`- Last name, family name, or surname that belongs to the MongoDB Cloud user.
125
125
*`mobileNumber` - Mobile phone number that belongs to the MongoDB Cloud user.
126
126
127
+
~> **NOTE:** - Does not return pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-createprojectinvitation) endpoint or pending invitations created using [`mongodbatlas_project_invitation`](../resources/project_invitation.md) resource.
128
+
127
129
128
130
See [MongoDB Atlas API - Project](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Projects) - [and MongoDB Atlas API - Teams](https://docs.atlas.mongodb.com/reference/api/project-get-teams/) Documentation for more information.
Copy file name to clipboardExpand all lines: docs/data-sources/projects.md
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,13 +51,14 @@ data "mongodbatlas_projects" "test" {
51
51
52
52
*`name` - The name of the project you want to create.
53
53
*`org_id` - The ID of the organization you want to create the project within.
54
+
*`project_id`- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud project.
54
55
*`cluster_count` - The number of Atlas clusters deployed in the project.
55
56
*`created` - The ISO-8601-formatted timestamp of when Atlas created the project.
56
57
*`tags` - Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see [Resource Tags](https://www.mongodb.com/docs/atlas/tags/)
57
58
*`teams` - Returns all teams to which the authenticated user has access in the project. See [Teams](#teams).
58
59
*`limits` - The limits for the specified project. See [Limits](#limits).
59
60
*`ip_addresses` - IP addresses in a project categorized by services. See [IP Addresses](#ip-addresses). **WARNING:** This attribute is deprecated, use the `mongodbatlas_project_ip_addresses` data source instead.
60
-
61
+
*`users` - Returns list of all pending and active MongoDB Cloud users associated with the specified project.
61
62
*`is_collect_database_specifics_statistics_enabled` - Flag that indicates whether to enable statistics in [cluster metrics](https://www.mongodb.com/docs/atlas/monitor-cluster-metrics/) collection for the project.
62
63
*`is_data_explorer_enabled` - Flag that indicates whether to enable Data Explorer for the project. If enabled, you can query your database with an easy to use interface.
63
64
*`is_extended_storage_sizes_enabled` - Flag that indicates whether to enable extended storage sizes for the specified project.
@@ -87,5 +88,18 @@ data "mongodbatlas_projects" "test" {
87
88
*`services.clusters.#.inbound` - List of inbound IP addresses associated with the cluster. If your network allows outbound HTTP requests only to specific IP addresses, you must allow access to the following IP addresses so that your application can connect to your Atlas cluster.
88
89
*`services.clusters.#.outbound` - List of outbound IP addresses associated with the cluster. If your network allows inbound HTTP requests only from specific IP addresses, you must allow access from the following IP addresses so that your Atlas cluster can communicate with your webhooks and KMS.
89
90
91
+
### Users
92
+
*`id`- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
93
+
*`orgMembershipStatus`- String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or they are already active in the organization.
94
+
*`roles`- One or more project-level roles assigned to the MongoDB Cloud user.
95
+
*`username`- Email address that represents the username of the MongoDB Cloud user.
96
+
*`country`- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
97
+
*`createdAt`- Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
98
+
*`firstName`- First or given name that belongs to the MongoDB Cloud user.
99
+
*`lastAuth` - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
100
+
*`lastName`- Last name, family name, or surname that belongs to the MongoDB Cloud user.
101
+
*`mobileNumber` - Mobile phone number that belongs to the MongoDB Cloud user.
102
+
103
+
~> **NOTE:** - Does not return pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-createprojectinvitation) endpoint or pending invitations created using [`mongodbatlas_project_invitation`](../resources/project_invitation.md) resource.
90
104
91
105
See [MongoDB Atlas API - Projects](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Projects) - [and MongoDB Atlas API - Teams](https://docs.atlas.mongodb.com/reference/api/project-get-teams/) Documentation for more information.
0 commit comments