GET api/RBAC

Get RBAC settings for village

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of AccessControlModel
NameDescriptionTypeAdditional information
VillageId

Village ID

globally unique identifier

None.

Feature

Feature ID

VillageFeatures

None.

FeatureName

Feature Name

string

None.

MinimumRole

Minimum Role to access feature NOTE: Can be a UserVillageRole value, OR can be int.MaxValue (2,147,483,647) for Owner-Only

UserVillageRole

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "VillageId": "2d4d28a3-e278-4470-8de0-a22955cbe8f8",
    "Feature": 0,
    "FeatureName": "None",
    "MinimumRole": 0
  },
  {
    "VillageId": "2d4d28a3-e278-4470-8de0-a22955cbe8f8",
    "Feature": 0,
    "FeatureName": "None",
    "MinimumRole": 0
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccessControlModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
  <AccessControlModel>
    <Feature>None</Feature>
    <MinimumRole>Revoked</MinimumRole>
    <VillageId>2d4d28a3-e278-4470-8de0-a22955cbe8f8</VillageId>
  </AccessControlModel>
  <AccessControlModel>
    <Feature>None</Feature>
    <MinimumRole>Revoked</MinimumRole>
    <VillageId>2d4d28a3-e278-4470-8de0-a22955cbe8f8</VillageId>
  </AccessControlModel>
</ArrayOfAccessControlModel>