Get Entities based on Organizations
Oct 25, 2024
09:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oct 25, 2024
09:38 AM
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.
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
Labels:
- Labels:
-
Best Practices
-
Coding
2 REPLIES 2
Oct 25, 2024
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oct 25, 2024
09:57 AM
Hello Shashi,
The answer depends on why you need to do that. For example
- 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.
- 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.
- 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
Mar 20, 2025
11:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mar 20, 2025
11:14 AM
Hi,
@Constantine Thanks for the response. After some time, research, and everything else, I learned that we don't have any workaround. As of now, there is no solution.
Thanks,
Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
