5 Replies Latest reply on May 22, 2017 12:09 AM by scha-2 RSS
    scha-2 Apprentice

    How can I set permission about snippet?

    I create user for create something

    so i give permission for Thing collection

    and i create thing

    it look good but when i create thing with snippet

    it will appear error!

    i want create thing with snippet and this service execute user created by Administrator

     

    i use this snippet..

    someone please help me

    thanks..

      • Re: How can I set permission about snippet?
        anna Communicator

        Dear Seonho Cha,

        Please set design permission to the user you login with for EntityServices.

        Go to Sources->EntityServices->Permissions, Set Design permission for the login user.

         

        Thanks,

         

        Br,

        Anna

          • Re: How can I set permission about snippet?
            scha-2 Apprentice

            Dear Anna an

            Thank you for your comment

            Sources means to resource? and go EntityServices

            and click permission?

            but EntityServices don't have edit button and permission icon

            Perhaps you said set permission in Resource permission in this page?


            thanks,


              • Re: How can I set permission about snippet?
                anna Communicator

                Dear Seonho Cha,

                Sorry my mistake, it's under Resources

                Check Permissions from above snapshot,

                and then set Runtime Permissions:

                 

                Runtime:

                Try to type "CreateThing" under "Property, Service or Event Overrides" Tab, and set Service Execute(Green button) permission for the user you want to give permission to.

                In case you will need to call other Services under EntityServices in future, you could set permission for all property read, write, service execute, etc. in the beginning of the set permission page(See my snapshot Run time above).

                 

                Thanks,

                 

                Br,

                Anna

            • Re: How can I set permission about snippet?
              Ankit Gupta Ninja

              Hi seonho Cha,

               

              Running a Service/Snippet requires RunTime Permission.

              Please follow following Steps to resolve this issue.

              1. Navigate to Composer -> System -> Resources.

              2. Locate the EntityServices and check the checkbox. Click on Permissions button on the Top.

              3. Go to RunTime.

              4. In Property, Service or Event Overrides, type in CreateThing.

              5. Then under CreateThing Service add your user/user_group and click on allow to give the Service Execute rights to the user/user_group.

               

              You may want to add RunTime permission for other Services in EntityServices based on your requirement.

               

              I hope it helps.