Method: licenseAssignments.get
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה licenseAssignments.get מאפשרת לקבל את הרישיון של משתמש ספציפי לפי מק"ט המוצר.
בקשת HTTP
GET https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
productId |
string
המזהה הייחודי של המוצר. מידע נוסף על מוצרים בגרסה הזו של ה-API זמין במאמר מוצרים ומק"טים.
|
skuId |
string
המזהה הייחודי של מק"ט של מוצר. מידע נוסף על המק"טים הזמינים בגרסה הזו של ה-API זמין במאמר מוצרים ומק"טים.
|
userId |
string
כתובת האימייל הראשית הנוכחית של המשתמש. אם כתובת האימייל של המשתמש משתנה, צריך להשתמש בכתובת האימייל החדשה בבקשות ה-API. מכיוון ש-userId עשוי להשתנות, אין להשתמש בערך של userId כמפתח לנתונים קבועים. המפתח הזה עלול להיפגם אם כתובת האימייל של המשתמש הנוכחי תשתנה. אם ה-userId יושעה, סטטוס הרישיון ישתנה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של LicenseAssignment
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/apps.licensing
מידע נוסף זמין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Method: licenseAssignments.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nlicenseAssignments.get a specific user's license by product SKU.\n\n### HTTP request\n\n`GET https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `productId` | `string` A product's unique identifier. For more information about products in this version of the API, see [Products and SKUs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |\n| `skuId` | `string` A product SKU's unique identifier. For more information about available SKUs in this version of the API, see [Products and SKUs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |\n| `userId` | `string` The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [LicenseAssignment](/workspace/admin/licensing/reference/rest/v1/licenseAssignments#LicenseAssignment).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.licensing`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]