LINE WORKS API を Service Account + JWT で検証しています。 Monitoring API の利用可否について確認したいです。
使用したいAPI:
GET /v1.0/monitoring/message-contents/download
現在の状況:
- Developer Console で Client App を作成済み
- OAuth scope は monitoring.read, user.read, user.profile.read を付与済み
- Service Account を発行済み
- private key で JWT assertion を生成し、access token の取得は成功
- GET https://www.worksapis.com/v1.0/users は成功
- しかし GET https://www.worksapis.com/v1.0/monitoring/message-contents/download は
{"code":"UNAUTHORIZED","description":"Authentication failed."}
になります
補足:
- 私のアカウントは現在 Sub Admin です
- Admin Console の Super Admin 一覧には 1名しか表示されていません
- 以前に管理者権限の委任を受けたことがありますが、現在の表示は Sub Admin です
- Service Account は個人メンバーではないため、Super Admin の委任対象にできませんでした
確認したい点:
1. Monitoring API は monitoring.read scope のみで利用可能でしょうか
2. Monitoring API は Super Admin 権限が必須でしょうか
3. Sub Admin では権限項目がほぼ同じでも利用不可でしょうか
4. 委任された管理者でも Monitoring API を利用できますか
5. Service Account に追加で必要な権限設定はありますか
よろしくお願いします。
GET /v1.0/monitoring/message-contents/download
現在の状況:
- Developer Console で Client App を作成済み
- OAuth scope は monitoring.read, user.read, user.profile.read を付与済み
- Service Account を発行済み
- private key で JWT assertion を生成し、access token の取得は成功
- GET https://www.worksapis.com/v1.0/users は成功
- しかし GET https://www.worksapis.com/v1.0/monitoring/message-contents/download は
{"code":"UNAUTHORIZED","description":"Authentication failed."}
になります
補足:
- 私のアカウントは現在 Sub Admin です
- Admin Console の Super Admin 一覧には 1名しか表示されていません
- 以前に管理者権限の委任を受けたことがありますが、現在の表示は Sub Admin です
- Service Account は個人メンバーではないため、Super Admin の委任対象にできませんでした
確認したい点:
1. Monitoring API は monitoring.read scope のみで利用可能でしょうか
2. Monitoring API は Super Admin 権限が必須でしょうか
3. Sub Admin では権限項目がほぼ同じでも利用不可でしょうか
4. 委任された管理者でも Monitoring API を利用できますか
5. Service Account に追加で必要な権限設定はありますか
よろしくお願いします。
投稿に新しいコメントが追加されましたら通知を送信します。
コメント0
まだ、解決できませんか?
今すぐ実際に使用しているLINE WORKSユーザーに質問してみましょう。