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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Get Entities based on Organizations

pshashipreetham
17-Peridot

Get Entities based on Organizations

Hi,

 

Is there a way to get all the Entities based on an 'XYZ' Organization assigned to it?

 

Thanks,

 

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
1 REPLY 1

Hello Shashi,

The answer depends on why you need to do that. For example

  1. If you need to check the entities to which your own user's organization has access to, then just do a Resources["SearchFunctions"].SearchThings(), or a wider SpotlightSearch. You will only see what you are allowed to see.
  2. If you are Administrator, and want to check to which org a Thing belongs to, you can iterate over all things in the system and do Things[name].GetVisibilityPermissions() to check the org.
  3. If you do it for some security purposes, e.g. want to check overall visibility, then it becomes much harder, because then you need to account for the visibility inheritance through Collections, ThingTemplates, etc.

/ Constantine

Announcements


Top Tags