cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Generic Thing Error - REST service failure: Unauthorised

hujingrui
12-Amethyst

Generic Thing Error - REST service failure: Unauthorised

Capture.PNG

 

My Team have recently upgraded ThingWorx to 8.5 from 8.3.

As a normal user, I am getting the above REST service failure: Unauthorised when I tried to create a new Thing using the Generic Thing Template.

Is this a permission issue?

If so, where and which permission do I need to get the admin to set?

 

The error in logs is {Not authorized for ServiceInvoke on GetHandlerDefinitions in ConfiguredThing.}

The admin have tried setting permissions for visibilities, run time and design time on the Generic Thing Template but it is not working.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @hujingrui 

 

Starting from ThingWorx 8.4, the security of Thingworx was improved and this means some access rights were changed or revoked. Please follow below steps with the Administrator user:

 

  1. Login to Composer
  2. Go to System -> Resources
  3. Click on CollectionFunctions Resource
  4. Execute AddCollectionVisibilityPermission service with below parameters
    • collectionName - ThingPackages
    • principal - <Organization or Organizational Unit Name>
      • Organizational Units are declared as <Organization Name>:<Organizational Unit Name>
    • principalType - Organization / OrganizationalUnit
  • For ThingWorx 8.4 and up the following must also be performed:
    1. Login to Composer
    2. Go to System -> Resources
    3. Click on CollectionFunctions Resource
    4. Execute AddCollectionRunTimePermission service with below parameters
      • collectionName - ThingPackages
      • type - ServiceInvoke
      • resource - * (all) / <Specific Property, Service or Event Name>
      • principal - <User or Group Name>
      • principalType - User / Group
      • Allow - True

 

Thanks,

Vibhuti

View solution in original post

1 REPLY 1

Hi @hujingrui 

 

Starting from ThingWorx 8.4, the security of Thingworx was improved and this means some access rights were changed or revoked. Please follow below steps with the Administrator user:

 

  1. Login to Composer
  2. Go to System -> Resources
  3. Click on CollectionFunctions Resource
  4. Execute AddCollectionVisibilityPermission service with below parameters
    • collectionName - ThingPackages
    • principal - <Organization or Organizational Unit Name>
      • Organizational Units are declared as <Organization Name>:<Organizational Unit Name>
    • principalType - Organization / OrganizationalUnit
  • For ThingWorx 8.4 and up the following must also be performed:
    1. Login to Composer
    2. Go to System -> Resources
    3. Click on CollectionFunctions Resource
    4. Execute AddCollectionRunTimePermission service with below parameters
      • collectionName - ThingPackages
      • type - ServiceInvoke
      • resource - * (all) / <Specific Property, Service or Event Name>
      • principal - <User or Group Name>
      • principalType - User / Group
      • Allow - True

 

Thanks,

Vibhuti

Top Tags