JSON Permission Editing

From eVision
Jump to: navigation, search

Find the JSON permissions file in the manufacturers OE app data folder, edit it how you want, save, right click the file, & set it to Read-Only so OE won't overwrite that file upon login.

For each permission section based on usertypes, there should be a ContextType 1 & ContextType 2 followed by the individual permissions. "ContextType": 1 stands for the UserType. To edit the usertype, change the ContextIdentifier number to one of these

00000000-0000-0000-0000-000000000001 Master Admin

00000000-0000-0000-0000-000000000002 Manufacturer Admin

00000000-0000-0000-0000-000000000003 Designer

00000000-0000-0000-0000-000000000004 Dealer Admin

00000000-0000-0000-0000-000000000005 Sales Reps

00000000-0000-0000-0000-000000000006 Engineering

00000000-0000-0000-0000-000000000007 Customer Support

181ffdf9-e7a0-40e7-8bee-1984d03eba8a Tester

9d7bd37c-4d8b-4aa1-b7d5-4b0816a64d1b Manufacturer


"ContextType": 2 is for the status of the project. Here is what you can change the ContextIdentifier to

00000000-0000-0000-0000-000000000001 Quoted

00000000-0000-0000-0000-000000000002 Submitted

00000000-0000-0000-0000-000000000003 Under Manufacturer Review

00000000-0000-0000-0000-000000000004 Under Dealer Review

00000000-0000-0000-0000-000000000005 Acknowledgement Approved

00000000-0000-0000-0000-000000000006 In Production

00000000-0000-0000-0000-000000000007 Cancelled

00000000-0000-0000-0000-000000000008 Assistance Needed

00000000-0000-0000-0000-000000000009 Shipped

00000000-0000-0000-0000-000000000010 Acknowledged

00000000-0000-0000-0000-000000000011 Question Hold

00000000-0000-0000-0000-000000000012 Open for Revision

00000000-0000-0000-0000-000000000013 Re-Submitted


Here is a sample where the user type is a Master Admin & the status of the project is Submitted. This sample shows that the permission "Can Edit Under Review Projects" has a default value of True, but is currently set to False which means the user can not edit under review projects. It also shows the permission "Can Change Status" that has a default value of False, but is currently set to True which means that the user can change the status of the project. Also to note is that with the exception of the last permission, each permission has a comma after the closed bracket.

"Context": [

 {

"ContextType": 1, "ContextIdentifier": "00000000-0000-0000-0000-000000000001"

 },
 {

"ContextType": 2, "ContextIdentifier": "00000000-0000-0000-0000-000000000002"

 }

], "Permissions": [ {

       "Token": "CAN_EDIT_UNDERREVIEW_PROJECTS",
       "DefaultValue": "TRUE",
       "CurrentValue": "false",
       "ValueType": "bool"
     },
     {
       "Token": "CAN_CHANGE_STATUS",
       "DefaultValue": "FALSE",
       "CurrentValue": "TRUE",
       "ValueType": "bool"
     }
   ]


Back to Developer Page