CurrentUser

Returns user permissions for each individual resource endpoint.

Date Released: May 2014 Date Updated: Jan 2021
URLSupports
/{cf_uri}/CurrentUser GET |  PUT |  POST |  DELETE
Please note: While accessibility via the API is available to both AccountRight and new Essentials files. Not all features will be displayed in Product for new Essentials

To view the descriptions for the elements you can either hover any attribute to reveal details or click here to show all details inline.

Items shown with are required when posting or puting data
Items shown with are read-only elements

Attribute Details

  • UserAccess []
  • An array of user access informtation for each API endpoint resource
    • ResourcePathString
    • The endpoint resource reference ie: {cf_uri}/Contact/Customer or {cf_uri}/GeneralLedger/Account
    • Access []
    • The level of access the user has for the particular resource, if no access to the endpoint the array is empty, access values can consit of the following:

      GET - supporting data retrieval
      POST - supporting data insert
      PUT - supporting data update
      DELETE - supporting data deletion

Example json GET response

  • {
  • "UserAccess" : [
    • {
    • "ResourcePath" : "{cf_uri}/Contact/Customer/",
    • "Access" : [
      • "GET",
      • "POST",
      • "PUT",
      • "DELETE"
      • ]
    • },
    • {
    • "ResourcePath" : "{cf_uri}/GeneralLedger/Account/",
    • "Access" : [
      • "GET"
      • ]
    • }
    • ]
  • }
  • Hypermedia in the MYOB Business API

    The {cf_uri} is provided by the Company File endpoint.

    Read more about Hypermedia in the MYOB Business API in our best practice guide.