Skip to main content
12-Amethyst
Mar 17, 2022 1:00 PM UTC
Solved

Error while creating Thing through service via Non administrator user

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

 

 

1-Visitor
Mar 17, 2022 1:51 PM UTC

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
Mar 17, 2022 1:27 PM UTC

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.

Translate
1-Visitor
Mar 17, 2022 1:51 PM UTC

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. 

Translate