6 Replies Latest reply on Nov 12, 2015 2:12 AM by anna RSS
    davidcor Apprentice

    User security question

    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.




      • User security question
        saeedma Apprentice

        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



        • User security question
          davidcor Apprentice

          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

           



          • User security question
            saeedma Apprentice

            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.

             

            • User security question
              davidcor Apprentice

              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