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

사용자 권한

mongosync 연결 문자열 에 지정된 사용자에게는 소스 및 대상 클러스터에 대한 필수 권한이 있어야 합니다. 권한은 환경과 역 동기화 사용 여부에 따라 달라집니다.

자체 managed 권한은 다음과 같습니다.

서버 역할에 대한 자세한 내용은 자체 관리형 배포서버의 역할 기반 액세스 제어를 참조하세요.

To update user permissions, see: grantRolesToUser.

Atlas 권한은 다음과 같습니다.

동기화 유형
필수 소스 권한
필수 대상 권한

기본값

  • atlasAdmin

반전 또는 다중 반전

Atlas 역할에 대한 자세한 내용은 Atlas User Role을 참조하세요.

Atlas user 권한을 업데이트 하려면 프로젝트에 대한 액세스 관리를 참조하세요.

참고

최소 권한은 Mongosync 버전에 따라 변경될 수 있습니다.

일부 권한 작업은 사용자 지정 역할을 사용하여 Atlas에서 생성할 수 없으므로 최소 권한은 온프레미스 배포 에만 적용됩니다.

최소 소스 권한은 다음과 같습니다.

동기화 유형
최소 소스 권한

기본값

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"bypassWriteBlockingMode",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus",
"setUserWriteBlockMode"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"changeStream",
"collStats",
"find",
"indexStats",
"listCollections",
"listIndexes"
]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
},
{
"resource": { "system_buckets": "" },
"actions": [ "listCollections", "listIndexes" ]
}
]

반전

기본값 소스 권한과 기본값 대상 권한의 모든 것.

다중 반전

다음이 추가된 기본값 소스 권한 및 기본값 대상 권한의 모든 것:

[
{ "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] }
]

V5.0 마이그레이션

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"changeStream",
"collStats",
"find",
"indexStats",
"listCollections",
"listIndexes"
]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
}
]

최소 대상 권한은 다음과 같습니다.

동기화 유형
최소 대상 권한

기본값

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"bypassDocumentValidation",
"changeStream",
"collMod",
"convertToCapped",
"createCollection",
"createIndex",
"dropCollection",
"dropIndex",
"enableSharding",
"find",
"indexStats",
"insert",
"listCollections",
"listIndexes",
"remove",
"renameCollectionSameDB",
"update",
"bypassWriteBlockingMode",
"setUserWriteBlockMode"
]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find", "collStats" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "", "collection": "system.views" },
"actions": [ "dropCollection" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find", "update" ]
},
{
"resource": { "db": "config", "collection": "tags" },
"actions": [ "find", "update", "remove" ]
},
{
"resource": { "system_buckets": "" },
"actions": [ "listCollections", "listIndexes" ]
}
]

반전

다음이 추가된 기본값 소스 권한 및 기본값 대상 권한의 모든 것:

[
{ "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] }
]

다중 반전

다음이 추가된 기본값 소스 권한 및 기본값 대상 권한의 모든 것:

[
{ "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] }
]

소스 클러스터 에서 마이그레이션하는 경우, 소스 클러스터 또는 5.0 clusterManager v. 에 나열된 최소 권한이 있어야 합니다.50

v5.0 에 대한 최소 소스 권한 다음과 같습니다.

동기화 유형
최소 소스 권한

V5.0 마이그레이션

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"changeStream",
"collStats",
"find",
"indexStats",
"listCollections",
"listIndexes"
]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
}
]