I have different users who will be accessing a index. Problem is I want User "A" to access the original data but for User "B" data would be masked for same index. I tried to create the Python script to mask the information but how to invoke the script on user-session.
User role is assigned on index level and hence all or none will be affected. There are two ways you can try
What if user wants to see raw events with masked data? I believe summary indexing will be able to produce report or search for fields which are creating summary index.