가져오기 모드 스페이스에서 리소스를 읽고 쓰려면 서비스 계정으로 Chat 앱을 인증해야 합니다.
관리자가 서비스 계정에 다음 Chat API 승인 범위 https://www.googleapis.com/auth/chat.import를 부여합니다.
Google Workspace 도메인 관리자만 도메인 전체 위임을 통해 서비스 계정에 이 OAuth 범위를 부여할 수 있습니다.
Chat 앱에서 가져오기 모드 스페이스를 만드는 모든 도메인에는 이 OAuth 범위가 있어야 합니다. 서비스 계정에 이 범위에 대한 도메인 전체 권한이 위임되면 Chat 앱은 사용자 계정을 가장하여 가져오기 모드 스페이스에 액세스할 수 있습니다.
경우에 따라 명의 도용 사용자 계정을 더 이상 사용할 수 없게 될 수 있습니다. 이 경우 Chat 앱은 서비스 계정 사용자 인증 정보를 대체로 사용할 수 있습니다. 예를 들어 메시지 작성 중에 사용된 사용자 계정을 삭제하면 Chat 앱에서 자체 서비스 계정 사용자 인증 정보를 사용하여 동일한 콘텐츠가 포함된 메시지를 만들 수 있습니다. Chat 앱은 다음 OAuth 범위(https://www.googleapis.com/auth/chat.bot)를 사용하여 서비스 계정 사용자 인증 정보를 사용하는 앱으로 가져오기 모드 스페이스에 액세스할 수 있습니다.
가져오기 모드 공간으로 리소스를 가져올 때는 다른 Google Chat API 범위가 필요하지 않습니다.
Chat 앱은 자체적으로 만든 가져오기 모드 스페이스에만 콘텐츠를 가져올 수 있으며 다른 앱에서 만든 가져오기 모드 스페이스에는 가져올 수 없습니다.
다음 표에는 Chat 앱이 가져오기 모드 스페이스에서 호출할 수 있는 리소스 메서드와 이러한 메서드에서 지원하는 인증 유형이 나와 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-12-21(UTC)"],[[["Google Chat API allows importing data from other platforms into Google Chat using import mode spaces."],["Chat apps require specific authentication and authorization to read and write resources in these spaces, needing domain administrator approval."],["Apps can impersonate user accounts or utilize their service account credentials for specific actions within import mode spaces."],["Import mode spaces support various resource methods with differing authentication requirements, as detailed in the provided table."],["Chat apps can only import content into spaces they create and not into spaces created by other apps."]]],["Apps use the Google Chat API's import mode to bring data from other platforms into Google Chat. This requires authentication with a service account granted the `https://www.googleapis.com/auth/chat.import` scope via domain-wide delegation by a Google Workspace admin. Apps can impersonate user accounts or use service account credentials (`https://www.googleapis.com/auth/chat.bot`). Only specific resource methods are supported in import mode spaces. Import mode is exclusive, meaning apps can only modify spaces they create.\n"]]