Skip to main content
1-Visitor
July 26, 2017
Solved

Permissions issue - Not authorized for ServiceInvoke on GetEntityList

  • July 26, 2017
  • 1 reply
  • 4209 views

Hi all, I'm having difficulties with a mash-up which triggers services from a particular thing (servicesThing). A script which calls GetEntityList service could not be initiated.

I'm getting the following error:

[context: com.thingworx.webservices.context.HttpExecutionContext@59f92085][message: Execution error in service script [servicesThing getEntityList] : Wrapped com.thingworx.common.exceptions.InvalidRequestException: Not authorized for ServiceInvoke on GetEntityList in EntityServices Cause: Not authorized for ServiceInvoke on GetEntityList in EntityServices]

In the servicesThing permissions section, "All Properties, Events, and Services" has an appropriate group assigned to. In addition, "Property, Service or Event Overrides" was set as below

The code works when logged in as Administrator. It was initially developed on another server with multi-tenant ThingWorx platform (version 6.5). Having moved to another server, non multi-tenant, version 7.3.5, permission problems arose. I'd be grateful for your help!

Best answer by posipova

You would need a few additional permissions here. Your user would need permission on EntityServices resources as well as platformsubsystem and alertfunctions. You may look into setting up a System user for convenience: The use of System User

1 reply

posipova20-TurquoiseAnswer
20-Turquoise
July 26, 2017

You would need a few additional permissions here. Your user would need permission on EntityServices resources as well as platformsubsystem and alertfunctions. You may look into setting up a System user for convenience: The use of System User