Is there a way to filter feature view based on username?

255
3
10-09-2020 07:30 AM
DataOfficer
Regular Contributor

Is there any way to control layer views based on username without creating individual hosted view layers for each user? We have a species distribution dataset which is continually updated from a Survey123 form populated by multiple organisational and community users. We would like to be able to set up views based on an individual's username, in a way that the view automatically changes depending on who is logged in, without creating individual hosted view layers for each user (this would be in the hundreds). Is this possible? E.g., to display a webmap with all the data on it but certain users can only see their own records and not other users? Would this be possible through something like URL parameters, where the webmap automatically detects the username of the person logged in and passes URL parameters to display only records from that person?

Many thanks,

Rob

3 Replies
IanGallo
New Contributor III

Hi Rob, Did you ever find an solution for this? 

0 Kudos
DataOfficer
Regular Contributor

Hi @IanGallo ,

Sorry for the slow reply. The only workaround I have found so far is to give the users access to a hosted view layer of the data, in which 'Editors can only see their own features' is enabled in the Settings. This appears to work even when editing is turned off. Users accessing the layer then only see the features that they created when signed in with that username (e.g. via Survey123).

0 Kudos
KPyne
by
New Contributor III

Just dropping a comment here for more visibility. This would be a very useful feature!