Skip to main content
12-Amethyst
March 17, 2022
Solved

Error while creating Thing through service via Non administrator user

  • March 17, 2022
  • 2 replies
  • 1545 views

Hi All,
There was an error while creating things with the service as a non-administrator user. (I also granted permissions in to the EntityServices for user and Usergroup. In theThingWorx version  : 9.1
I'm getting this error:
        JavaException: com.thingworx.common.exceptions.InvalidRequestException: Not authorized for Create.
>>Concerning the issue, I need assistance.

regards,
hareef

 

 

Best answer by Mukul_467346

you would need these permissions.

1) Entity service resource - run time (CreateThing)
2) Thing collection design time - as the user will be creating the thing
3) while using create thing snippet you will have to pass Template name and project name - for this reason, the user should have visibility on that specific template/project or on the entire Template/project collection. 

2 replies

22-Sapphire I
March 17, 2022

This is saying that the User needs permissions to use 'EntityServices' 'CreateThing' or Thing Collection Design Time Create

I think the script log should have that showing.

Either give the user permission to that service or collection permission or give it to the System user.

1-Visitor
March 17, 2022

you would need these permissions.

1) Entity service resource - run time (CreateThing)
2) Thing collection design time - as the user will be creating the thing
3) while using create thing snippet you will have to pass Template name and project name - for this reason, the user should have visibility on that specific template/project or on the entire Template/project collection.