mongodbatlas.CloudUserTeamAssignment provides a Cloud User Team Assignment resource. It lets you manage the association between a cloud user and a team, enabling you to import, assign, remove, or update the user’s membership.
NOTEUsers with pending invitations created using the deprecated
mongodbatlas.ProjectInvitationresource or via the deprecated Invite One MongoDB Cloud User to One Project endpoint cannot be managed with this resource. See MongoDB Atlas API for details. To manage such users with this resource, refer to our Migration Guide: Team Usernames Attribute to Cloud User Team Assignment.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const example = new mongodbatlas.CloudUserTeamAssignment("example", {
orgId: orgId,
teamId: teamId,
userId: userId,
});
const exampleUserId = example.userId.apply(userId => mongodbatlas.getCloudUserTeamAssignmentOutput({
orgId: orgId,
teamId: teamId,
userId: userId,
}));
const exampleUsername = example.username.apply(username => mongodbatlas.getCloudUserTeamAssignmentOutput({
orgId: orgId,
teamId: teamId,
username: username,
}));
import pulumi
import pulumi_mongodbatlas as mongodbatlas
example = mongodbatlas.CloudUserTeamAssignment("example",
org_id=org_id,
team_id=team_id,
user_id=user_id)
example_user_id = example.user_id.apply(lambda user_id: mongodbatlas.get_cloud_user_team_assignment_output(org_id=org_id,
team_id=team_id,
user_id=user_id))
example_username = example.username.apply(lambda username: mongodbatlas.get_cloud_user_team_assignment_output(org_id=org_id,
team_id=team_id,
username=username))
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := mongodbatlas.NewCloudUserTeamAssignment(ctx, "example", &mongodbatlas.CloudUserTeamAssignmentArgs{
OrgId: pulumi.Any(orgId),
TeamId: pulumi.Any(teamId),
UserId: pulumi.Any(userId),
})
if err != nil {
return err
}
_ = example.UserId.ApplyT(func(userId string) (mongodbatlas.GetCloudUserTeamAssignmentResult, error) {
return mongodbatlas.GetCloudUserTeamAssignmentResult(interface{}(mongodbatlas.LookupCloudUserTeamAssignment(ctx, &mongodbatlas.LookupCloudUserTeamAssignmentArgs{
OrgId: orgId,
TeamId: teamId,
UserId: pulumi.StringRef(pulumi.StringRef(userId)),
}, nil))), nil
}).(mongodbatlas.GetCloudUserTeamAssignmentResultOutput)
_ = example.Username.ApplyT(func(username string) (mongodbatlas.GetCloudUserTeamAssignmentResult, error) {
return mongodbatlas.GetCloudUserTeamAssignmentResult(interface{}(mongodbatlas.LookupCloudUserTeamAssignment(ctx, &mongodbatlas.LookupCloudUserTeamAssignmentArgs{
OrgId: orgId,
TeamId: teamId,
Username: pulumi.StringRef(pulumi.StringRef(username)),
}, nil))), nil
}).(mongodbatlas.GetCloudUserTeamAssignmentResultOutput)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var example = new Mongodbatlas.CloudUserTeamAssignment("example", new()
{
OrgId = orgId,
TeamId = teamId,
UserId = userId,
});
var exampleUserId = Mongodbatlas.GetCloudUserTeamAssignment.Invoke(new()
{
OrgId = orgId,
TeamId = teamId,
UserId = example.UserId,
});
var exampleUsername = Mongodbatlas.GetCloudUserTeamAssignment.Invoke(new()
{
OrgId = orgId,
TeamId = teamId,
Username = example.Username,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.CloudUserTeamAssignment;
import com.pulumi.mongodbatlas.CloudUserTeamAssignmentArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetCloudUserTeamAssignmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new CloudUserTeamAssignment("example", CloudUserTeamAssignmentArgs.builder()
.orgId(orgId)
.teamId(teamId)
.userId(userId)
.build());
final var exampleUserId = example.userId().applyValue(_userId -> MongodbatlasFunctions.getCloudUserTeamAssignment(GetCloudUserTeamAssignmentArgs.builder()
.orgId(orgId)
.teamId(teamId)
.userId(_userId)
.build()));
final var exampleUsername = example.username().applyValue(_username -> MongodbatlasFunctions.getCloudUserTeamAssignment(GetCloudUserTeamAssignmentArgs.builder()
.orgId(orgId)
.teamId(teamId)
.username(_username)
.build()));
}
}
resources:
example:
type: mongodbatlas:CloudUserTeamAssignment
properties:
orgId: ${orgId}
teamId: ${teamId}
userId: ${userId}
variables:
exampleUserId:
fn::invoke:
function: mongodbatlas:getCloudUserTeamAssignment
arguments:
orgId: ${orgId}
teamId: ${teamId}
userId: ${example.userId}
exampleUsername:
fn::invoke:
function: mongodbatlas:getCloudUserTeamAssignment
arguments:
orgId: ${orgId}
teamId: ${teamId}
username: ${example.username}
Further Examples
- Cloud User Team Assignment
Create CloudUserTeamAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudUserTeamAssignment(name: string, args: CloudUserTeamAssignmentArgs, opts?: CustomResourceOptions);@overload
def CloudUserTeamAssignment(resource_name: str,
args: CloudUserTeamAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudUserTeamAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_id: Optional[str] = None,
team_id: Optional[str] = None,
user_id: Optional[str] = None)func NewCloudUserTeamAssignment(ctx *Context, name string, args CloudUserTeamAssignmentArgs, opts ...ResourceOption) (*CloudUserTeamAssignment, error)public CloudUserTeamAssignment(string name, CloudUserTeamAssignmentArgs args, CustomResourceOptions? opts = null)
public CloudUserTeamAssignment(String name, CloudUserTeamAssignmentArgs args)
public CloudUserTeamAssignment(String name, CloudUserTeamAssignmentArgs args, CustomResourceOptions options)
type: mongodbatlas:CloudUserTeamAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CloudUserTeamAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CloudUserTeamAssignmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CloudUserTeamAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudUserTeamAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudUserTeamAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cloudUserTeamAssignmentResource = new Mongodbatlas.CloudUserTeamAssignment("cloudUserTeamAssignmentResource", new()
{
OrgId = "string",
TeamId = "string",
UserId = "string",
});
example, err := mongodbatlas.NewCloudUserTeamAssignment(ctx, "cloudUserTeamAssignmentResource", &mongodbatlas.CloudUserTeamAssignmentArgs{
OrgId: pulumi.String("string"),
TeamId: pulumi.String("string"),
UserId: pulumi.String("string"),
})
var cloudUserTeamAssignmentResource = new CloudUserTeamAssignment("cloudUserTeamAssignmentResource", CloudUserTeamAssignmentArgs.builder()
.orgId("string")
.teamId("string")
.userId("string")
.build());
cloud_user_team_assignment_resource = mongodbatlas.CloudUserTeamAssignment("cloudUserTeamAssignmentResource",
org_id="string",
team_id="string",
user_id="string")
const cloudUserTeamAssignmentResource = new mongodbatlas.CloudUserTeamAssignment("cloudUserTeamAssignmentResource", {
orgId: "string",
teamId: "string",
userId: "string",
});
type: mongodbatlas:CloudUserTeamAssignment
properties:
orgId: string
teamId: string
userId: string
CloudUserTeamAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudUserTeamAssignment resource accepts the following input properties:
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Team
Id string - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- User
Id string - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Team
Id string - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- User
Id string - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- team
Id String - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- user
Id String - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- team
Id string - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- user
Id string - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- org_
id str - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- team_
id str - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- user_
id str - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- team
Id String - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- user
Id String - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudUserTeamAssignment resource produces the following output properties:
- Country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- Created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- First
Name string - First or given name that belongs to the MongoDB Cloud user.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- Last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- Last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- Mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- Org
Membership stringStatus - 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.
- Roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- Team
Ids List<string> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- Username string
- Email address that represents the username of the MongoDB Cloud user.
- Country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- Created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- First
Name string - First or given name that belongs to the MongoDB Cloud user.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- Last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- Last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- Mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- Org
Membership stringStatus - 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.
- Roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- Team
Ids []string - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- Username string
- Email address that represents the username of the MongoDB Cloud user.
- country String
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At String - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name String - First or given name that belongs to the MongoDB Cloud user.
- id String
- The provider-assigned unique ID for this managed resource.
- invitation
Created StringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires StringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username String - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth String - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name String - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number String - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Membership StringStatus - 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.
- roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team
Ids List<String> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username String
- Email address that represents the username of the MongoDB Cloud user.
- country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name string - First or given name that belongs to the MongoDB Cloud user.
- id string
- The provider-assigned unique ID for this managed resource.
- invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Membership stringStatus - 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.
- roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team
Ids string[] - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username string
- Email address that represents the username of the MongoDB Cloud user.
- country str
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created_
at str - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first_
name str - First or given name that belongs to the MongoDB Cloud user.
- id str
- The provider-assigned unique ID for this managed resource.
- invitation_
created_ strat - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation_
expires_ strat - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter_
username str - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last_
auth str - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last_
name str - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile_
number str - Mobile phone number that belongs to the MongoDB Cloud user.
- org_
membership_ strstatus - 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.
- roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team_
ids Sequence[str] - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username str
- Email address that represents the username of the MongoDB Cloud user.
- country String
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At String - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name String - First or given name that belongs to the MongoDB Cloud user.
- id String
- The provider-assigned unique ID for this managed resource.
- invitation
Created StringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires StringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username String - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth String - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name String - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number String - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Membership StringStatus - 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.
- roles Property Map
- Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team
Ids List<String> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username String
- Email address that represents the username of the MongoDB Cloud user.
Look up Existing CloudUserTeamAssignment Resource
Get an existing CloudUserTeamAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CloudUserTeamAssignmentState, opts?: CustomResourceOptions): CloudUserTeamAssignment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
country: Optional[str] = None,
created_at: Optional[str] = None,
first_name: Optional[str] = None,
invitation_created_at: Optional[str] = None,
invitation_expires_at: Optional[str] = None,
inviter_username: Optional[str] = None,
last_auth: Optional[str] = None,
last_name: Optional[str] = None,
mobile_number: Optional[str] = None,
org_id: Optional[str] = None,
org_membership_status: Optional[str] = None,
roles: Optional[CloudUserTeamAssignmentRolesArgs] = None,
team_id: Optional[str] = None,
team_ids: Optional[Sequence[str]] = None,
user_id: Optional[str] = None,
username: Optional[str] = None) -> CloudUserTeamAssignmentfunc GetCloudUserTeamAssignment(ctx *Context, name string, id IDInput, state *CloudUserTeamAssignmentState, opts ...ResourceOption) (*CloudUserTeamAssignment, error)public static CloudUserTeamAssignment Get(string name, Input<string> id, CloudUserTeamAssignmentState? state, CustomResourceOptions? opts = null)public static CloudUserTeamAssignment get(String name, Output<String> id, CloudUserTeamAssignmentState state, CustomResourceOptions options)resources: _: type: mongodbatlas:CloudUserTeamAssignment get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- Created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- First
Name string - First or given name that belongs to the MongoDB Cloud user.
- Invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- Last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- Last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- Mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Org
Membership stringStatus - 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.
- Roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- Team
Id string - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- Team
Ids List<string> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- User
Id string - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- Username string
- Email address that represents the username of the MongoDB Cloud user.
- Country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- Created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- First
Name string - First or given name that belongs to the MongoDB Cloud user.
- Invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- Last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- Last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- Mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- Org
Membership stringStatus - 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.
- Roles
Cloud
User Team Assignment Roles Args - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- Team
Id string - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- Team
Ids []string - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- User
Id string - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- Username string
- Email address that represents the username of the MongoDB Cloud user.
- country String
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At String - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name String - First or given name that belongs to the MongoDB Cloud user.
- invitation
Created StringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires StringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username String - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth String - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name String - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number String - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- org
Membership StringStatus - 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.
- roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team
Id String - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- team
Ids List<String> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- user
Id String - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- username String
- Email address that represents the username of the MongoDB Cloud user.
- country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name string - First or given name that belongs to the MongoDB Cloud user.
- invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Id string - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- org
Membership stringStatus - 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.
- roles
Cloud
User Team Assignment Roles - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team
Id string - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- team
Ids string[] - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- user
Id string - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- username string
- Email address that represents the username of the MongoDB Cloud user.
- country str
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created_
at str - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first_
name str - First or given name that belongs to the MongoDB Cloud user.
- invitation_
created_ strat - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation_
expires_ strat - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter_
username str - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last_
auth str - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last_
name str - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile_
number str - Mobile phone number that belongs to the MongoDB Cloud user.
- org_
id str - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- org_
membership_ strstatus - 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.
- roles
Cloud
User Team Assignment Roles Args - Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team_
id str - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- team_
ids Sequence[str] - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- user_
id str - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- username str
- Email address that represents the username of the MongoDB Cloud user.
- country String
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At String - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name String - First or given name that belongs to the MongoDB Cloud user.
- invitation
Created StringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires StringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username String - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth String - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name String - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number String - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
- org
Membership StringStatus - 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.
- roles Property Map
- Organization and project level roles to assign the MongoDB Cloud user within one organization.
- team
Id String - Unique 24-hexadecimal digit string that identifies the team to which you want to assign the MongoDB Cloud user. Use the /teams endpoint to retrieve all teams to which the authenticated user has access.
- team
Ids List<String> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- user
Id String - Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- username String
- Email address that represents the username of the MongoDB Cloud user.
Supporting Types
CloudUserTeamAssignmentRoles, CloudUserTeamAssignmentRolesArgs
- Org
Roles List<string> - One or more organization level roles to assign the MongoDB Cloud user.
- Project
Role List<CloudAssignments User Team Assignment Roles Project Role Assignment> - List of project level role assignments to assign the MongoDB Cloud user.
- Org
Roles []string - One or more organization level roles to assign the MongoDB Cloud user.
- Project
Role []CloudAssignments User Team Assignment Roles Project Role Assignment - List of project level role assignments to assign the MongoDB Cloud user.
- org
Roles List<String> - One or more organization level roles to assign the MongoDB Cloud user.
- project
Role List<CloudAssignments User Team Assignment Roles Project Role Assignment> - List of project level role assignments to assign the MongoDB Cloud user.
- org
Roles string[] - One or more organization level roles to assign the MongoDB Cloud user.
- project
Role CloudAssignments User Team Assignment Roles Project Role Assignment[] - List of project level role assignments to assign the MongoDB Cloud user.
- org_
roles Sequence[str] - One or more organization level roles to assign the MongoDB Cloud user.
- project_
role_ Sequence[Cloudassignments User Team Assignment Roles Project Role Assignment] - List of project level role assignments to assign the MongoDB Cloud user.
- org
Roles List<String> - One or more organization level roles to assign the MongoDB Cloud user.
- project
Role List<Property Map>Assignments - List of project level role assignments to assign the MongoDB Cloud user.
CloudUserTeamAssignmentRolesProjectRoleAssignment, CloudUserTeamAssignmentRolesProjectRoleAssignmentArgs
- Project
Id string - Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
- Project
Roles List<string> - One or more project-level roles assigned to the MongoDB Cloud user.
- Project
Id string - Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
- Project
Roles []string - One or more project-level roles assigned to the MongoDB Cloud user.
- project
Id String - Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
- project
Roles List<String> - One or more project-level roles assigned to the MongoDB Cloud user.
- project
Id string - Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
- project
Roles string[] - One or more project-level roles assigned to the MongoDB Cloud user.
- project_
id str - Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
- project_
roles Sequence[str] - One or more project-level roles assigned to the MongoDB Cloud user.
- project
Id String - Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
- project
Roles List<String> - One or more project-level roles assigned to the MongoDB Cloud user.
Import
Cloud User Team Assignment resource can be imported using the Org ID & Team ID & User ID OR Org ID & Team ID & Username, in the format ORG_ID/TEAM_ID/USER_ID OR ORG_ID/TEAM_ID/USERNAME.
$ pulumi import mongodbatlas:index/cloudUserTeamAssignment:CloudUserTeamAssignment test 63cfbf302333a3011d98592e/9f3c1e7a4d8b2f6051acde47/5f18367ccb7a503a2b481b7a
OR
$ pulumi import mongodbatlas:index/cloudUserTeamAssignment:CloudUserTeamAssignment test 63cfbf302333a3011d98592e/9f3c1e7a4d8b2f6051acde47/test-user@example.com
For more information see: MongoDB Atlas API - Cloud Users Documentation.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
