Skip to content

Instantly share code, notes, and snippets.

@tomchristie
Created June 3, 2014 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomchristie/c5ed81a03808518d037e to your computer and use it in GitHub Desktop.
Save tomchristie/c5ed81a03808518d037e to your computer and use it in GitHub Desktop.
{
"users": [
{
"organisations": [
{
"id": 456,
"role": "OWNER",
"editable": false,
"name": "Acme Org",
"permissions": ["SDFDS::SDFDS", "SDFDFS::SASDA"]
},
{
"id": 123,
"role": "USER",
"editable": true,
"name": "Baz Org",
"permissions": ["SDFDS::SDFDS"]
}
],
"role": "OWNER/USER",
"id": "d0f115cde3194ef29c859b74cabd301d",
"full_name": "Foo Bar",
"email": "foobar@example.com"
}
]
}
@tomchristie
Copy link
Author

Add users...

{
    "email": "foo@example.com",
    "full_name": "Ms Foozington",
    "permissions": {
         123: ["ASDSA::EWRWE", "DSF::SDFWE"]
     }
}

@CHR15-
Copy link

CHR15- commented Jun 3, 2014

{
"message": "Sup bro, invited you to crunchboards. peace."
"email": "foo@example.com",
"full_name": "Ms Foozington",
"organisations": {
"id": "04b8b3cedd6445dd93e1ae207cd9a291",
"permissions" : [{"ACCOUNT_CATEGORY(ASSETS::CURRENT_ASSETS)" : true} ... ]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment