Skip To Content ArcGIS for Developers Sign In Dashboard

Assign User Credits

Description

The Assign User Credits operation (POST only) allows organization administrators to allocate credits for organizational users in ArcGIS Online.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

userAssignments

A JSON array of objects, each contains a pair of user name and the number of credits to designate to that user. A maximum of 100 users can be assigned all together in each request.

Example:

[
     { "username":"user1", "credits": 100.0 },
     { "username":"user2", "credits": 100.0 },
     { "username":"user3", "credits": 100.0 },
     { "username":"user6", "credits": 500.0 }
   ]

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

notAssignedUsers

A JSON array of user names representing a subset of users whose credits were not assigned successfully. Used when success is true.

Example:

["user3", "user6"]

Example Usage

URL for Assign User Credits

https://www.arcgis.com/sharing/rest/portals/LkFyxb9zDq7vAxAm/assignUserCredits

JSON Response Syntax

{
  "success": true | false,
  "notAssignedUsers": ["<username1>", "<username2>"...]
}

JSON Response Example

{
  "success": true,
  "notAssignedUsers": ["user3", "user6"]
}