Skip to main content
1-Visitor
September 20, 2016
Solved

Project visibility/design/runtime permission inheritance

  • September 20, 2016
  • 4 replies
  • 6358 views

Is there anyway to set visibility/design/runtime  permissions to all entities that belong to specific project?

Is permissions inheritance. limited to ThingTemplate <--- Thing (instance)?

Best answer by CarlesColl

Hi Leo,

Previous answers aren't 100% accurate about setting permissions by ProjectName, on 7.2 you have new snippets to Add permissions to a things that belong to a ProjectName.

Look for: SetEntityPermissions Snippet

Also won't be hard to build a service which queries entities that belong to a project and set it in batch.

Best Regards,

Carles.

4 replies

5-Regular Member
September 20, 2016

Hello,

You could assign permissions on the ThingShape level, and then have all things or templates with a certain permission scheme implement the ThingShape with those permissions granted. This is generally not advised because it can become very hard to manage and result in security issues for your application. The best practice way of granting permissions is to do it on the ThingTemplate level.

Please let me know if you have further questions on this.
Thanks!

Tori

1-Visitor
September 21, 2016

Leo Dias​ Besides , what Tori said ,

Run Time, Design Time, and Visibility permissions on a ThingTemplate will only apply to that ThingTemplate and any child ThingTemplates

Run Time Instance, Design Time Instance, and Visibility Instance permissions on a ThingTemplate will be applied to all Things that use this ThingTemplate

Run Time, Design Time, and Visibility permissions on a Thing will override any instance permissions set on the ThingTemplate level

*Design Time Instance permissions are currently not functioning as expected.

1-Visitor
September 21, 2016

Hi Leo,

Previous answers aren't 100% accurate about setting permissions by ProjectName, on 7.2 you have new snippets to Add permissions to a things that belong to a ProjectName.

Look for: SetEntityPermissions Snippet

Also won't be hard to build a service which queries entities that belong to a project and set it in batch.

Best Regards,

Carles.

1-Visitor
October 27, 2017

Hi Carles,

Thanks for this answer, I do find it bizarre that we can't just set permission at the project level for all the entities belongs to a project. But anyways if we can only achieve this via Service. Can you please tell me, where would we execute this service? or do we need to execute this services all the time?

Regards,

Neetu

1-Visitor
October 29, 2017

Hi Neetu, No, you just execute this service once and permissions are set forever, until you remove if of course. Best Regards, Carles.

1-Visitor
September 21, 2016

Thankyou Carles Coll​ for putting up your expertness on this issue. Even we find it useful for future references.

Thank You once again.