2017-08-31 12 views
0

Googleでは、クラスルームを自動的に作成し、APIを使用してGoogle Classroomに学生を登録する統合を行っています。 クラス、学生、教師が同じドメインにいる場合は問題ありません。クラスルームのAPI - クロスドメインの登録

しかし、当社では2つのドメインを持っています。学生は1つのドメイン(xxx.com)にあり、教師は別のドメイン(aaa.com)にあります。 ドメイン(xxx.com)で作成したクラスで先生(aaa.com)としてユーザーを登録するとき、私たちは次のようなエラーがあります:管理コンソール(admin.google.com)で

{"message": "The caller does not have permission", "domain": "global": "The caller does not have permission" "," reason ":" forbidden "}]," status ":" PERMISSION_DENIED "}} 

を、両方のドメインでホワイトリストを設定します。

開発者パネル(console.developers.google.com)では、サービスアカウントを既に作成しており、管理用COnsole(admin.google.com - セキュリティ>詳細設定>認証>管理APIクライアントアクセス)

Google Classroomインターフェイスで登録すると、クロスドメインであっても問題はありません。

このクロスドメイン統合をクラスルームAPIで実行する方法はありますか?

答えて

0

他のドメインがクラスに参加できるようにするには、help page - Control which classes users in your domain can joinに従う必要があります。

When you whitelist domains for Classroom, you’re allowing users in trusted domains to join classes in your domain. It also allows your users to join classes in the domains that you trust. For whitelisted domains to work properly in Classroom, the G Suite administrators of both domains need to make changes in the Google Admin console.

Subdomains and domain aliases aren't included when you whitelist a domain, so whitelist these separately if needed. For example, if you whitelist the domain abbeycollege.com, and then get abbeyschool.com, you need to whitelist abbeyschool.com to grant access to that organization, too.

enter image description here

希望します。

+0

ありがとうございました。私たちはすでにこの設定を行っています。実際には動作しますが、APIでは動作しません。 – KaioSantos

+0

私はこの機能がまだAPIを通じて利用できないと思って、手動で行う必要があります。私のポストは助けにならなかったと思うし、これを削除します。コメントを投稿する –

関連する問題