Restrict what users see in a feature service?
We have a feature class with points created by many users (more than a hundred). The user name exists as an attribute for each point. These points will be shown to the same users with a feature service in a geocortex site (preferably HTML5).
Is there a way to link the content of the feature service to the user name, so each user only gets to see the points they have created? We will have to enable security for the site, but that only restricts access to the whole content of the feature service, not a subset of points.
Previously we have solved this with filters or multiple feature services, but that only works for a very small number of users.
Any ideas welcome!
-
Hi Turid,
I think you could accomplish this with a workflow that runs when the Viewer starts. You could use a GetCurrentUser activity to grab the current user's name, and then use the SetLayerDefinition activity to only display features where the attribute matches the username.
-Victoria
0 -
Thank you very much for the tip!
0
Please sign in to leave a comment.
Comments
2 comments