cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How can I set permission about snippet?

CHASEONHO
18-Opal

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

ACCEPTED SOLUTION

Accepted Solutions
AnnaAn
14-Alexandrite
(To:CHASEONHO)

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

View solution in original post

5 REPLIES 5
AnnaAn
14-Alexandrite
(To:CHASEONHO)

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

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,


AnnaAn
14-Alexandrite
(To:CHASEONHO)

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

Dear Anna An

Thank you! This problem has been solved with your advice

I really want to express my gratitude to you!

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.

Announcements


Top Tags