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

817
4
10-09-2020 07:30 AM
DataOfficer
Occasional Contributor III

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

4 Replies
IanGallo
Occasional Contributor

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

0 Kudos
DataOfficer
Occasional Contributor III

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
Occasional Contributor

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

JoeAbercrombie
New Contributor II

Really need canned RLS functionality, kind of ridiculous.