Skip to main content
18-Opal
May 22, 2017
Solved

How can I set permission about snippet?

  • May 22, 2017
  • 2 replies
  • 2471 views

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..

Best answer by AnnaAn

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

2 replies

AnnaAn14-AlexandriteAnswer
14-Alexandrite
May 22, 2017

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

CHASEONHO18-OpalAuthor
18-Opal
May 22, 2017

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,


14-Alexandrite
May 22, 2017

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

5-Regular Member
May 22, 2017

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.