I've created a mashup that references a custom service that is defined on a thing that calls Resources["EntityServices"].CreateThing service to create a new thing from a template. "Service execute" permissions have been applied as follows:
I am now seeing an error that states "Not authorized for Create Cause: Not authorized for Create]" but I can't figure out where to go next.
Hi David,
You'll have to grant the
System
userCreate
runtime permissions on the Entity Services Resource. Go to System>Resources and on the Right side of the entity on the Resources list, select the permissions icon and go to runtime. Under Services Overrides, Select Create Thing and add the System user to the service permissions.Thank you,
Saeed
The System account already had "Service Execute" on the EntityServices resource for all properties, events and services. I also explicitly added the permissions in an override for CreateThing and I get the same error. I've also tried explicitly giving the user account permissions to the CreateThing service and that hasn't worked either
You will also have to go to the explorer and click on the permissions icon next to Things. In design time, give your user permission to create here.
That did the trick. Now I am having a similar problem with creating a new User. In design time, I gave System user Create permissions on the Users object.
Import Failed: Not authorized for Create Cause: Import Failed: Not authorized for Create
Dear David,
did you resolve the CreateUser issue(Not authorized for Create Cause: Import Failed: Not authorized for Create)?
I had the same issue now.
Thanks,
Br,
Anna
Hi David,
I resolved the issue with:
Go to Users->Permissions, add the logged in user's Group into Design time, then I could run test "CreateUser" successfully.
Thanks,
Br,
Anna