Skip to main content
1-Visitor
July 11, 2014
Question

User security question

  • July 11, 2014
  • 4 replies
  • 2051 views

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:

    • for the System account on the referenced thing that contains the called service, under all properties, events and services
    • for the user on the referenced thing that contains the called service, in an override for the service
    • for the System account on the Thing Template that is used to create the new Thing
    • for the System account on EntityServices 

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.




    4 replies

    5-Regular Member
    July 14, 2014

    Hi David,

    You'll have to grant the

    System

    user

    Create

    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



    davidcor1-VisitorAuthor
    1-Visitor
    July 14, 2014

    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



    5-Regular Member
    July 14, 2014

    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.

    davidcor1-VisitorAuthor
    1-Visitor
    July 14, 2014

    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



    14-Alexandrite
    November 12, 2015

    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