HiI desgin map that One of the users would not have access to a specific layer on a mapEvery time this user opens the map, a warning message appears to him (I attached it)I want this message not to appear to him? How can I do that?Thanks
No, it is not how this is designed.
https://support.esri.com/en-us/knowledge-base/error-the-layer-layer-name-cannot-be-added-to-the-map-000017323
The simplest thing you can do is save the map as a copy and remove the layer. Two maps, one with, and one without the layers.
I do not want to share this layer with the user, but rather I want him to see other layersWhile another user he can see this layerin same One MapCan I do that?
Share the layer so that he has access or create an additional map without the layer.
Best practice is to ensure that all layers required for a map, and all layers/maps for an app, are accessible to the end user. Otherwise you will encounter messages like you are seeing that cannot be disabled, or the map/app may fail altogether.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.