AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

사용자 지정 데이터베이스 역할 구성

You can create custom roles in Atlas when the built-in roles don't include your desired set of privileges. Atlas applies each database user's custom roles together with:

각 데이터베이스 사용자에게 여러 사용자 지정 역할을 할당할 수 있습니다.

참고

무료 클러스터와 Flex 클러스터 제한

Changes to custom roles might take up to 30 seconds to deploy in Free clusters and Flex clusters.

사용자 지정 역할 및 사용자 지정 역할 API 에 사용할 수 있는 권한 작업 은 내장 역할에 사용할 수 있는 권한 작업의 하위 집합을 나타냅니다.

사용자 정의 역할 권한 목록을 검토하려면 API 참조를 확인하세요.

중요

You must use the Atlas CLI, Atlas Administration API, Atlas UI, or a supported integration to add, modify, or delete database roles on Atlas clusters. Otherwise, Atlas rolls back any role modifications.

  • 단일 데이터베이스 사용자에게 최대 20 개의 사용자 지정 역할을 할당할 수 있습니다.

  • You can create up to 100 custom roles per project by default. IMPORTANT: If you require more custom roles per project, you can increase the number of custom roles up to a maximum of 1400 through the Atlas Administration API using the Set One Project Limit endpoint.

  • Atlas는 프로젝트의 활동 피드에서 사용자 지정 MongoDB 역할의 생성, 삭제 및 업데이트를 감사합니다.

  • 사용자에게 여러 역할을 할당하고 해당 역할이 객체에 대해 충돌하는 권한을 부여하는 경우, Atlas는 모든 역할 내에서 가장 높은 권한을 우선시합니다.

    예를 들면 다음과 같습니다.

    두 개의 사용자 지정 역할을 생성하고 두 역할을 모두 사용자 A에게 할당합니다.

    • The first custom role grants only read privileges on your database. It also grants bypassDocumentValidation on your database.

    • The second role grants dbAdmin privileges on your database. It doesn't grant bypassDocumentValidation, which is an implicit denial of bypass permissions.

    dbAdmin이 더욱 상위 데이터베이스 액세스 권한이므로 사용자 A는 데이터베이스에 대한 모든 dbAdmin 권한을 갖습니다. 또한 bypassDocumentValidation이 더욱 상위 우회 권한이기 때문에 사용자 A가 bypassDocumentValidation 권한도 갖게 됩니다.

사용자 지정 데이터베이스 역할을 구성하려면, Atlas에 대해 Organization Owner, Project Owner 또는 Project Database Access Admin 액세스 권한이 있어야 합니다.

Atlas CLI를 사용하여 프로젝트의 사용자 지정 데이터베이스 역할을 업데이트하려면 다음 명령을 실행하십시오.

atlas customDbRoles create <roleName> [options]

명령 구문 및 매개변수에 관한 자세한 학습 은 Atlas CLI 문서에서 Atlas customDbRoles 생성을 참조하십시오.

Atlas CLI를 사용하여 프로젝트의 모든 사용자 지정 데이터베이스 역할을 나열하려면 다음 명령을 실행하십시오.

atlas customDbRoles list [options]

Atlas CLI를 사용하여 지정한 프로젝트에서 사용자 지정 데이터베이스 역할에 대한 세부 정보를 반환하려면 다음 명령을 실행합니다.

atlas customDbRoles describe <roleName> [options]

이전 명령의 구문 및 매개변수에 관한 자세한 사항은 Atlas CLI 문서에서 Atlas 사용자 지정 DB 역할 목록 및 Atlas 사용자 지정 DB 역할 설명을 참조하십시오.

팁

참조: 관련 링크

Atlas CLI를 사용하여 프로젝트의 사용자 정의 데이터베이스 역할을 업데이트하려면 다음 명령어를 실행하세요.

atlas customDbRoles update <roleName> [options]

명령 구문 및 매개변수에 대해 자세히 학습하려면 atlas customDbRoles 업데이트에 대한 Atlas CLI 설명서를 참조하세요.

Atlas CLI를 사용하여 프로젝트에서 사용자 정의 데이터베이스 역할을 삭제하려면 다음 명령어를 실행하세요.

atlas customDbRoles delete <roleName> [options]

To learn more about the command syntax and parameters, see the Atlas CLI documentation for atlas customDbRoles delete.

다음 시나리오에서는 사용자 지정 역할을 삭제할 수 없습니다:

  • 역할을 삭제하면 부모 역할이나 작업이 전혀 없이 하나 이상의 자식 역할이 남게 됩니다.

  • 역할을 삭제하면 한 명 이상의 데이터베이스 사용자가 역할이 없는 상태로 남게 되는 경우.

You can assign custom roles in the Atlas UI when you add a database user or modify a database user. To assign custom roles through the Atlas Administration API, see Create a Database User or Update a Database User.