重要: Play EMM API の新しい登録受け付けは終了しました。
詳細
Users: revokeDeviceAccess
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
現在ユーザーにプロビジョニングされているすべてのデバイスへのアクセス権を取り消します。ユーザー
managed Google Play ストアは、
管理できます。
この通話は EMM の管理対象アカウントでのみ機能します。
リクエスト
HTTP リクエスト
DELETE https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/deviceAccess
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
enterpriseId |
string |
企業の ID。
|
userId |
string |
ユーザーの ID。
|
承認
このリクエストには、次のスコープによる認証が必要です。
スコープ |
https://www.googleapis.com/auth/androidenterprise |
詳細については、認証と認可のページをご覧ください。
リクエスト本文
このメソッドをリクエストの本文に含めないでください。
レスポンス
成功すると、このメソッドによって空のレスポンスの本文が返されます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eRevokes all device access for a given user, preventing them from using the managed Play store on any managed device.\u003c/p\u003e\n"],["\u003cp\u003eThis action only applies to Enterprise Mobility Management (EMM)-managed accounts and requires proper authorization.\u003c/p\u003e\n"],["\u003cp\u003eThe request needs the enterprise and user IDs and is sent as an HTTP DELETE request to a specific endpoint.\u003c/p\u003e\n"],["\u003cp\u003eNo request body is necessary, and a successful operation results in an empty response body.\u003c/p\u003e\n"]]],[],null,["# Users: revokeDeviceAccess\n\n| **Note:** Requires [authorization](#auth).\n\nRevokes access to all devices currently provisioned to the user. The user\nwill no longer be able to use the managed Play store on any of their\nmanaged devices.\n\n\u003cbr /\u003e\n\n\nThis call only works with EMM-managed accounts.\n\nRequest\n-------\n\n### HTTP request\n\n```\nDELETE https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/deviceAccess\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `userId` | `string` | The ID of the user. |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns an empty response body."]]