Automation Suite
2022.4
偽
- 基本情報
- 認証
- 範囲と権限
- プラットフォーム管理 API
ユーザーにライセンスを割り当てる
UiPath Automation Suite API ガイド
最終更新日 2024年4月19日
ユーザーにライセンスを割り当てる
組織管理者は、このエンドポイントを使用して、ユーザー ID に基づきユーザーにライセンスを割り当てます。
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
要求本文には、さまざまな製品のライセンス コードの配列と、それらに対応する数量が含まれています。
{
"userIds": ["string"],
"userBundleCodes": ["string"],
"useExternalLicense": true
}
{
"userIds": ["string"],
"userBundleCodes": ["string"],
"useExternalLicense": true
}
注:
- 要求本文で使用できる利用可能なユーザー バンドル コードを確認するには、ユーザー ライセンス コードに関するこちらのページをご覧ください。
- 組織が購入した数のライセンスを割り当てることができます。
- 各ユーザーが 1 つずつライセンス ユニットを使用します。
API 呼び出しの構築に必要な情報をすべて収集したとします。
{baseURL}
はhttps://music-server.com
です。{access_token}
は1234
です (長さを考慮)。- ライセンスの割り当てが必要なテナントの
{accountId}
はsong-one
です。 - ライセンスを必要とするユーザーは以下の 3 人です。
userId
=singer-77
のユーザー 1userId
を持つユーザー 2 =singer-88
userId
を持つユーザー 3 =singer-111
- 次のユーザー ライセンスを割り当てる必要があります。
呼び出しは以下のようになります (cURL)。
curl --location --request POST 'https://music-server.com/lease_/api/account/song_one/user-license' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json' \
--data-raw '{
"userIds": ["singer-77", "singer-88", "singer-111"]
"userBundleCodes": ["RPADEVNU", "ATTUNU", "TSTNU"],
"useExternalLicense": true
}
curl --location --request POST 'https://music-server.com/lease_/api/account/song_one/user-license' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json' \
--data-raw '{
"userIds": ["singer-77", "singer-88", "singer-111"]
"userBundleCodes": ["RPADEVNU", "ATTUNU", "TSTNU"],
"useExternalLicense": true
}
ライセンス割り当てに成功した場合の応答本文は次のとおりです。
[
{
"userId": "string",
"organizationId": "string",
"useExternalLicense": true,
"userBundleCodes": [
"string"
]
}
]
[
{
"userId": "string",
"organizationId": "string",
"useExternalLicense": true,
"userBundleCodes": [
"string"
]
}
]