Analyzing user data through User Reporting Views
Longview provides preconfigured User Reporting Views that you can query in Excel to view information for users, such as all users and groups in the system, along with their permissions, system activity, and information. You can use any method for querying database views; however, Longview recommends using Microsoft Excel in the manner described in this section.
To analyze user data through User Reporting Views, you must complete the following procedures:
- Add the relevant data source. For more information, see Adding a Data Source.
- Query the User Reporting Views in Microsoft Excel. For more information, see Querying User Reporting Views.
Adding a Data Source
Before you can view User Reporting views, you must add the required Data Source. Complete one of the following the procedures based on your database:
Adding a SQL Data Source
Before you can open User Reporting views in Microsoft Excel, you must add the related Data Source.
To add a SQL Data Source, complete the following steps:
- Open Microsoft Excel on the Client machine.
- Click the Data tab.
- In the ribbon, click From Other Sources, and then click From Microsoft Query. The Choose Data Source dialog opens, as shown below:
- Select <New Data Source> and click OK. The Create New Data Source dialog opens, shown below:
- Specify a name for the Data Source.
- Select the appropriate driver for the data source. For example, SQL Server Native Client 10.0.
- Click Connect. The SQL Server Login dialog opens, as shown below:
- Complete the following fields:
Server: Specify the server on which the database is hosted.
Login ID: Specify the login ID for the View User, as specified during installation.
Password: Specify the password for the View User, as specified during installation.
- Click OK. The Create New Data Source dialog displays.
- Click OK. The Choose Data Source dialog appears with the new Data Source in the list.
- Do one of the following:
- If you want to query User Reporting Views immediately, click OK and continue with step 6 of Querying User Reporting Views.
- Click Cancel to close the Choose Data Source dialog and query User Reporting Views later.
Adding an Oracle Data Source
This procedure assumes you have installed and configured the relevant Oracle Client application.
Note: If you are using OS authentication, extra steps are required. Contact Longview Support Services.
To add an Oracle Data Source, complete the following steps:
- Open Microsoft Excel on the Client machine.
- Click the Data tab.
- In the ribbon, click From Other Sources, and then click From Microsoft Query. The Choose Data Source dialog displays, shown below:
- Select <New Data Source> and click OK. The Create New Data Source dialog displays, shown below:
- Specify a name for the Data Source.
- Select the appropriate driver for the data source. For example, Oracle in OraClient11g_home1.
- Click Connect. The Oracle ODBC Driver Connect dialog displays, like below:
- Complete the following fields:
Service Name: Specify the Oracle Instance on which the database is hosted.
User Name: Specify the user ID for the View User, as specified during installation.
Password: Specify the password for the View User, as specified during installation.
- Click OK. The Create New Data Source dialog displays.
- Click OK. The Choose Data Source dialog appears with the new Data Source in the list.
- Do one of the following:
- If you want to query User Reporting Views immediately, click OK and continue with step 6 of Querying User Reporting Views.
- Click Cancel to close the Choose Data Source dialog and query User Reporting Views later.
Querying User Reporting Views
Once you have added the required Data Source, you can query User Reporting Views in Microsoft Excel.
For information on adding a Data Source, see Adding a Data Source.
To open User Reporting Views, complete the following steps:
- In Microsoft Excel, click the Data tab.
- In the ribbon, click From Other Sources, and then click From Microsoft Query. The Choose Data Source dialog opens.
- Select the Data Source that you created for your Longview database and click OK. The SQL Server Login dialog opens.
- Complete the following fields:
Server: Specify the server on which the database is hosted.
Login ID: Specify the login ID for the View User, as specified during installation.
Password: Specify the password for the View User, as specified during installation.
- Click OK. The Query Wizard - Choose Columns dialog displays, as shown below:
- Click Options. The Table Options dialog displays, shown below:
- Select Views and clear all other options.
- For Owner, select the View User, as specified during installation.
- Click OK. The Query Wizard - Choose Columns dialog displays, populated with the User Reporting Views.
- Select one of the following User Reporting Views, and click the arrow:
LV_CombinedUserGroupAccess: Select this View to retrieve a list of combined user and group access for each user for all users in the system.
LV_GroupAccessForAllUsers: Select this View to retrieve a list of Group Access for each user for all users in the system.
LV_GroupAccessForGroups: Select this View to retrieve a list of Group Access for each group for all user groups in the system.
LV_GroupActivity: Select this View to retrieve a list of login activity for each user group in the system.
LV_GroupAuthorizations: Select this View to retrieve a list of all groups in the system along with their related authorizations.
LV_Groups: Select this View to retrieve a list of user groups in the system.
LV_GroupUserMembership: Select this View to retrieve a list of all groups with their associated user membership.
LV_RoleAccess: Select this View to retrieve a list of role access for all roles in the system.
LV_UserAccessForAllUsers: Select this View to retrieve a list of user access for all users in the system.
LV_UserActivity: Select this View to retrieve a list of user login activity.
LV_UserAttributes: Select this View to retrieve a list of user attributes in the system, along with the value of the attribute for users for which the attribute is set.
LV_UserAuthorizations: Select this View to retrieve a list of all users in the system along with their authorizations.
LV_UserGroupMembership: Select this View to retrieve a list of all users in the system with their associated domain and assigned groups.
LV_UserInfo: Select this View to retrieve a list of all users and their information. For example, name, email, and phone numbers.
LV_UserPasswordActivity: Select this View to retrieve a log of user password activity.
LV_Users: Select this View to retrieve a list of all users in the system.
Note: This View does not list the resolved access for each user.
- Click Next. The Query Wizard - Filter Data dialog displays.
- Optionally, use the Filter options as required to filter the query data.
- Click Next. The Query Wizard - Sort Order dialog displays.
- Optionally, use the Sort options to sort the query data.
- Click Next. The Query Wizard - Finish dialog displays, as shown below:
- Select Return Data to Microsoft Excel and click Finish. The Import Data dialog displays, as shown below:
- Edit the settings as necessary and click OK.
- The selected View appears in Microsoft Excel, like below:
- Repeat steps step 2 to 17 for the required Views.