I have a feature layer with a username attribute and I would like for my map to only show the features where username fra freature layer is the same as the username used to login to the portal with.
Is this possible
Just enable editor tracking on the feature layer - you don't need to create your own 'username' attribute - and then it will simply have this capability built in:
This would only work on the features the user has made, not the ones already in the feature layer.
The feature layer has an related tabel where users add data. In the main tabel an anministrator can add the workers name and then the worker can see in in the map.
Hope it makes sense :)