GET v2/ranches/{ranchGuid}/users/{userId}/permissions.json

Returns a user's ranch permissions

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

globally unique identifier

Required

ranchGuid

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

RanchUserPermissionWithWebAPIViewModel
NameDescriptionTypeAdditional information
Site

a list of permission models

Collection of RanchUserPermissionViewModel

None.

WebAPIAccess

if true, user has web API access

boolean

None.

ranchGuid

ranch GUID

globally unique identifier

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Site": [
    {
      "FeatureId": 1,
      "FeatureName": "sample string 2",
      "PermissionId": 3
    },
    {
      "FeatureId": 1,
      "FeatureName": "sample string 2",
      "PermissionId": 3
    }
  ],
  "WebAPIAccess": true,
  "ranchGuid": "5bdce3f5-6439-4ace-a2ff-0762b221d243"
}