Grant Application for an individual user.
POST/appcenter/apps/grantUser
Grant Application for an individual user(requires organizational administrator permissions)
History
| Version | Changes |
|---|---|
| v6.0.? | Added in: v6.0.? |
Request
- application/json
Body
user's id
list of app ids
Responses
- 200
- 401
- 403
- 404
- 500
Request successful
- application/json
- Schema
- Example (from schema)
Schema
error code
| InvalidParameter | invalid parameter |
| MissingParameter | missing parameter |
| PermissionDenied | no permission |
| NotFoundUser | user not found |
| NotFoundApp | app not found |
| NotFoundAppLicenseOrExpired | app license not found or license expired |
| LicenseLimited | license limit |
| UnsupportedGrant | grant for the app is unsupported |
The result of this request.
Error message for this request.
Error meta data for this request.
{
"errorCode": "string",
"result": "string",
"errorMsg": "string",
"errorData": {}
}
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}