Skip to main content
Contributor ⭐️⭐️
May 12, 2020 5:26 AM UTC
Solved

What field holds the logged in users details?

We are trying to filter certain reports by the logged in user details, only certain accounts  (and details) that a logged in user is associated with should show up in the report. What object/ field holds the logged in user details?

rakesh
rakeshAnswer
Lets put your data to work!
Jul 14, 2020 11:26 AM UTC

@bayareaguy 

If you bring in a field which has user mapping (CSM or Owner, etc.), we show the special behavior where you can select current user/other users(with autosuggest)/all users.

 

You can lock the filter so that end users cannot change it or you can use the data permissions that we have in place (link shared above) to achieve the same.
 

7 replies

Contributor ⭐️⭐️⭐️⭐️
May 19, 2020 11:44 AM UTC

@bayareaguy Their is a new object called user_login_history which you can use to build the user login history report.

Translate
Contributor ⭐️⭐️
May 19, 2020 4:29 PM UTC

Thanks Uday,

The exact scenario which i am trying to implement.

I am user John Doe and i should only be able to view accounts who i am an agent for.

So when I as JOhn doe login, the account details or account scorecard report should only be filtered where i am an agent. 

While designing these reports which variable i add to the filter? 

Translate
jgalvan
Helper ⭐️
May 19, 2020 7:52 PM UTC

It depends on how you’ve set up the report, but if you create a global filter on the dashboard with these reports to filter to “CSM” on the Company info object that should do it.

Translate
Contributor ⭐️⭐️
May 19, 2020 9:10 PM UTC

Global filter as in “CSM = “logged in USer? “ how do I get the logged in user in the filter? is there a variable which holds the logged in user, and even if it did will the global filter accept a variable?

Translate
jgalvan
Helper ⭐️
May 20, 2020 8:52 PM UTC

The Global Dashboard Filter will give you the option to select:

  1. “Other User” which you then could type in a specific CSM’s name
  2. “All Users”
  3.  “Current User”

 

Translate
jean.nairon
Expert ⭐️
Jul 10, 2020 11:48 PM UTC

@bayareaguy You can use the Global Filter as @jgalvan has described. This feature is available out-of-the-box and was built with your use case in mind. There is unfortunately no way to figure who the logged in user is outside of this filter. Here’s how to build a Global Filter: 

https://support.gainsight.com/Gainsight_NXT/Reports_and_Dashboards/Admin_Guides/Global_Filters_for_Dashboard

The above solution only filters the data on the dashboard and CSMs could change the filter or still view any data that doesn’t belong to them. If you are needing to lock down the data and ensure a CSM only sees what belongs to them, you would need to use Sharing Settings to secure the data. Here’s more information on this: 

https://support.gainsight.com/Gainsight_NXT/01Onboarding_and_Implementation/Onboarding_for_Gainsight_NXT/Login_and_Permissions/05Gainsight_Sharing_Settings

Translate
Jean
rakesh
Gainsight Employee ⭐️
rakeshAnswer
Lets put your data to work!
Jul 14, 2020 11:26 AM UTC

@bayareaguy 

If you bring in a field which has user mapping (CSM or Owner, etc.), we show the special behavior where you can select current user/other users(with autosuggest)/all users.

 

You can lock the filter so that end users cannot change it or you can use the data permissions that we have in place (link shared above) to achieve the same.
 

Translate