Get Permissions and Personas GET
Obtains a list of memberships to which the user has been granted access as a contact, along with a list of the general personas under which the user may access data and services
Response Parameters
| Parameter | Name | Type | Description |
| EntityGUID | Entity GUID | String | Unique identifier for the current user |
| EntityName | Entity Name | String (Optional) | The name associated with the current user |
| Username | Username | String (Optional) | The unique username assigned to the current user |
| EmailAddress | Email Address | String (Optional) | The email address associated with the current user |
| Personas | Personas | Enumeration (Optional) | The list of personas under which the user has been granted access to LEAF services |
| Memberships | Memberships | List (Optional) | The list of charity memberships to which the user has been granted access as a contact |
MembershipGUID
| Membership Identifier | String | The unique identifier for the membership |
CharityNumber
| LEAF Charity Number | String | The charity number assigned to the membership |
Name
| LEAF Charity Number | String (Optional) | The name of the farm, company, organisation or individual associated with the membership |
MembershipType
| Membership Type | Enumeration | The type of membership |
ContactType
| Contact Type | Enumeration (Optional) | Indicates if the user is a named contact for the membership |
Personas (Response)
| Value | Description |
| User is a contact for a LEAF charity membership |
| User is a member of staff |
Membership Type (Response)
| Value | Description |
| Please Select |
| Individual Member |
| Corporate Member |
| College Member |
| Advisor or Consultant |
| Producer Group |
| Non-Paying Agent |
| Green Box Subscriber |
| Friend |
| Industry |
| Non-Member |
| LEAF Marque buyers and sellers |
| LEAF Education - Farmer/Educator |
| LEAF Education - Corporate |
| Joint LEAF and LEAF Education - Corporate |
| Individual Producer |
| Multisite with QMS |
| Multisite without QMS |
| Equivalence Member |
Contact Type (Response)
| Value | Description |
| User is the primary contact |
| User is the billing contact |
| User is the marketing contact |
| User is the technical contact |
Example Request
GET https://api.leaf.eco/r1/authorisation.eb HTTP/1.1
Accept: text/xml
Response Schema
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Authorisation">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="EntityGUID" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Unique identifier for the current user</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="EntityName" minOccurs="0" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The name associated with the current user</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Username" minOccurs="0" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The unique username assigned to the current user</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="EmailAddress" minOccurs="0" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The email address associated with the current user</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Personas" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The list of personas under which the user has been granted access to LEAF services</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:list>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Member">
<xsd:annotation>
<xsd:documentation>User is a contact for a LEAF charity membership</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="Staff">
<xsd:annotation>
<xsd:documentation>User is a member of staff</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
</xsd:list>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Memberships" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The list of charity memberships to which the user has been granted access as a contact</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Item" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MembershipGUID" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The unique identifier for the membership</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CharityNumber" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The charity number assigned to the membership</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Name" minOccurs="0" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The name of the farm, company, organisation or individual associated with the membership</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="MembershipType">
<xsd:annotation>
<xsd:documentation>The type of membership</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Please Select" />
<xsd:enumeration value="Individual Member" />
<xsd:enumeration value="Corporate Member" />
<xsd:enumeration value="College Member" />
<xsd:enumeration value="Advisor or Consultant" />
<xsd:enumeration value="Producer Group" />
<xsd:enumeration value="Non-Paying Agent" />
<xsd:enumeration value="Green Box Subscriber" />
<xsd:enumeration value="Friend" />
<xsd:enumeration value="Industry" />
<xsd:enumeration value="Non-Member" />
<xsd:enumeration value="LEAF Marque buyers and sellers" />
<xsd:enumeration value="LEAF Education - Farmer/Educator" />
<xsd:enumeration value="LEAF Education - Corporate" />
<xsd:enumeration value="Joint LEAF and LEAF Education - Corporate" />
<xsd:enumeration value="Individual Producer" />
<xsd:enumeration value="Multisite with QMS" />
<xsd:enumeration value="Multisite without QMS" />
<xsd:enumeration value="Equivalence Member" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ContactType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Indicates if the user is a named contact for the membership</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:list>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="PrimaryContact">
<xsd:annotation>
<xsd:documentation>User is the primary contact</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="BillingContact">
<xsd:annotation>
<xsd:documentation>User is the billing contact</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="MarketingContact">
<xsd:annotation>
<xsd:documentation>User is the marketing contact</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="TechnicalContact">
<xsd:annotation>
<xsd:documentation>User is the technical contact</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
</xsd:list>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Example Response
HTTP/1.1 200 OK
Content-Type: text/xml
<?xml version="1.0" encoding="utf-8"?>
<Authorisation>
<EntityGUID>xsd:string</EntityGUID>
<EntityName>xsd:string</EntityName>
<Username>xsd:string</Username>
<EmailAddress>xsd:string</EmailAddress>
<Personas>xsd:string</Personas>
<Memberships>
<Item>
<MembershipGUID>xsd:string</MembershipGUID>
<CharityNumber>xsd:string</CharityNumber>
<Name>xsd:string</Name>
<MembershipType>xsd:string</MembershipType>
<ContactType>xsd:string</ContactType>
</Item>...</Memberships>
</Authorisation>
Example Request
GET https://api.leaf.eco/r1/authorisation.eb HTTP/1.1
Accept: application/json
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
{"EntityGUID":String,
"EntityName":String,
"Username":String,
"EmailAddress":String,
"Personas":String,
"Memberships":[{"MembershipGUID":String,
"CharityNumber":String,
"Name":String,
"MembershipType":String,
"ContactType":String},
...]}