1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getCloudUserTeamAssignment
MongoDB Atlas v4.0.0 published on Tuesday, Dec 30, 2025 by Pulumi
mongodbatlas logo
MongoDB Atlas v4.0.0 published on Tuesday, Dec 30, 2025 by Pulumi

    mongodbatlas.CloudUserTeamAssignment provides a Cloud User Team Assignment data source. The data source lets you retrieve a user assigned to a team.

    NOTEUsers with pending invitations created using the deprecated mongodbatlas.ProjectInvitation resource or via the deprecated Invite One MongoDB Cloud User to One Project endpoint are not returned 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}
    

    Using getCloudUserTeamAssignment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCloudUserTeamAssignment(args: GetCloudUserTeamAssignmentArgs, opts?: InvokeOptions): Promise<GetCloudUserTeamAssignmentResult>
    function getCloudUserTeamAssignmentOutput(args: GetCloudUserTeamAssignmentOutputArgs, opts?: InvokeOptions): Output<GetCloudUserTeamAssignmentResult>
    def get_cloud_user_team_assignment(org_id: Optional[str] = None,
                                       team_id: Optional[str] = None,
                                       user_id: Optional[str] = None,
                                       username: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetCloudUserTeamAssignmentResult
    def get_cloud_user_team_assignment_output(org_id: Optional[pulumi.Input[str]] = None,
                                       team_id: Optional[pulumi.Input[str]] = None,
                                       user_id: Optional[pulumi.Input[str]] = None,
                                       username: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetCloudUserTeamAssignmentResult]
    func LookupCloudUserTeamAssignment(ctx *Context, args *LookupCloudUserTeamAssignmentArgs, opts ...InvokeOption) (*LookupCloudUserTeamAssignmentResult, error)
    func LookupCloudUserTeamAssignmentOutput(ctx *Context, args *LookupCloudUserTeamAssignmentOutputArgs, opts ...InvokeOption) LookupCloudUserTeamAssignmentResultOutput

    > Note: This function is named LookupCloudUserTeamAssignment in the Go SDK.

    public static class GetCloudUserTeamAssignment 
    {
        public static Task<GetCloudUserTeamAssignmentResult> InvokeAsync(GetCloudUserTeamAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudUserTeamAssignmentResult> Invoke(GetCloudUserTeamAssignmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudUserTeamAssignmentResult> getCloudUserTeamAssignment(GetCloudUserTeamAssignmentArgs args, InvokeOptions options)
    public static Output<GetCloudUserTeamAssignmentResult> getCloudUserTeamAssignment(GetCloudUserTeamAssignmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mongodbatlas:index/getCloudUserTeamAssignment:getCloudUserTeamAssignment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId 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.
    TeamId 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.
    UserId 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.
    OrgId 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.
    TeamId 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.
    UserId 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.
    orgId 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.
    teamId 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.
    userId 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.
    orgId 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.
    teamId 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.
    userId 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.
    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.
    username str
    Email address that represents the username of the MongoDB Cloud user.
    orgId 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.
    teamId 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.
    userId 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.

    getCloudUserTeamAssignment Result

    The following output properties are available:

    Country string
    Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
    CreatedAt string
    Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
    FirstName string
    First or given name that belongs to the MongoDB Cloud user.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitationCreatedAt string
    Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    InvitationExpiresAt string
    Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    InviterUsername string
    Username of the MongoDB Cloud user who sent the invitation to join the organization.
    LastAuth string
    Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
    LastName string
    Last name, family name, or surname that belongs to the MongoDB Cloud user.
    MobileNumber string
    Mobile phone number that belongs to the MongoDB Cloud user.
    OrgId 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.
    OrgMembershipStatus string
    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 GetCloudUserTeamAssignmentRoles
    Organization and project level roles to assign the MongoDB Cloud user within one organization.
    TeamId 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.
    TeamIds List<string>
    List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
    UserId 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.
    CreatedAt string
    Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
    FirstName string
    First or given name that belongs to the MongoDB Cloud user.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitationCreatedAt string
    Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    InvitationExpiresAt string
    Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    InviterUsername string
    Username of the MongoDB Cloud user who sent the invitation to join the organization.
    LastAuth string
    Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
    LastName string
    Last name, family name, or surname that belongs to the MongoDB Cloud user.
    MobileNumber string
    Mobile phone number that belongs to the MongoDB Cloud user.
    OrgId 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.
    OrgMembershipStatus string
    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 GetCloudUserTeamAssignmentRoles
    Organization and project level roles to assign the MongoDB Cloud user within one organization.
    TeamId 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.
    TeamIds []string
    List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
    UserId 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.
    createdAt String
    Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
    firstName String
    First or given name that belongs to the MongoDB Cloud user.
    id String
    The provider-assigned unique ID for this managed resource.
    invitationCreatedAt String
    Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    invitationExpiresAt String
    Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    inviterUsername String
    Username of the MongoDB Cloud user who sent the invitation to join the organization.
    lastAuth String
    Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
    lastName String
    Last name, family name, or surname that belongs to the MongoDB Cloud user.
    mobileNumber String
    Mobile phone number that belongs to the MongoDB Cloud user.
    orgId 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.
    orgMembershipStatus String
    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 GetCloudUserTeamAssignmentRoles
    Organization and project level roles to assign the MongoDB Cloud user within one organization.
    teamId 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.
    teamIds List<String>
    List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
    userId 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.
    createdAt string
    Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
    firstName string
    First or given name that belongs to the MongoDB Cloud user.
    id string
    The provider-assigned unique ID for this managed resource.
    invitationCreatedAt string
    Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    invitationExpiresAt string
    Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    inviterUsername string
    Username of the MongoDB Cloud user who sent the invitation to join the organization.
    lastAuth string
    Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
    lastName string
    Last name, family name, or surname that belongs to the MongoDB Cloud user.
    mobileNumber string
    Mobile phone number that belongs to the MongoDB Cloud user.
    orgId 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.
    orgMembershipStatus string
    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 GetCloudUserTeamAssignmentRoles
    Organization and project level roles to assign the MongoDB Cloud user within one organization.
    teamId 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.
    teamIds string[]
    List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
    userId 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.
    id str
    The provider-assigned unique ID for this managed resource.
    invitation_created_at str
    Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    invitation_expires_at str
    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_status str
    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 GetCloudUserTeamAssignmentRoles
    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.
    createdAt String
    Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
    firstName String
    First or given name that belongs to the MongoDB Cloud user.
    id String
    The provider-assigned unique ID for this managed resource.
    invitationCreatedAt String
    Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    invitationExpiresAt String
    Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
    inviterUsername String
    Username of the MongoDB Cloud user who sent the invitation to join the organization.
    lastAuth String
    Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
    lastName String
    Last name, family name, or surname that belongs to the MongoDB Cloud user.
    mobileNumber String
    Mobile phone number that belongs to the MongoDB Cloud user.
    orgId 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.
    orgMembershipStatus String
    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.
    teamId 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.
    teamIds List<String>
    List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
    userId 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

    GetCloudUserTeamAssignmentRoles

    OrgRoles List<string>
    One or more organization level roles to assign the MongoDB Cloud user.
    ProjectRoleAssignments List<GetCloudUserTeamAssignmentRolesProjectRoleAssignment>
    List of project level role assignments to assign the MongoDB Cloud user.
    OrgRoles []string
    One or more organization level roles to assign the MongoDB Cloud user.
    ProjectRoleAssignments []GetCloudUserTeamAssignmentRolesProjectRoleAssignment
    List of project level role assignments to assign the MongoDB Cloud user.
    orgRoles List<String>
    One or more organization level roles to assign the MongoDB Cloud user.
    projectRoleAssignments List<GetCloudUserTeamAssignmentRolesProjectRoleAssignment>
    List of project level role assignments to assign the MongoDB Cloud user.
    orgRoles string[]
    One or more organization level roles to assign the MongoDB Cloud user.
    projectRoleAssignments GetCloudUserTeamAssignmentRolesProjectRoleAssignment[]
    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_assignments Sequence[GetCloudUserTeamAssignmentRolesProjectRoleAssignment]
    List of project level role assignments to assign the MongoDB Cloud user.
    orgRoles List<String>
    One or more organization level roles to assign the MongoDB Cloud user.
    projectRoleAssignments List<Property Map>
    List of project level role assignments to assign the MongoDB Cloud user.

    GetCloudUserTeamAssignmentRolesProjectRoleAssignment

    ProjectId string
    Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
    ProjectRoles List<string>
    One or more project-level roles assigned to the MongoDB Cloud user.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
    ProjectRoles []string
    One or more project-level roles assigned to the MongoDB Cloud user.
    projectId String
    Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
    projectRoles List<String>
    One or more project-level roles assigned to the MongoDB Cloud user.
    projectId string
    Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
    projectRoles 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.
    projectId String
    Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
    projectRoles List<String>
    One or more project-level roles assigned to the MongoDB Cloud user.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v4.0.0 published on Tuesday, Dec 30, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate