Excluding specific users from the social analytics service
Use SearchService commands to control whether specific users are included or excluded from the social analytics service. All users are included in the social analytics service by default.
Before you begin
To edit configuration files, you must use the IBM® WebSphere® Application Server wsadmin client. See Starting the wsadmin client for details.
About this task
- Is not returned as a related person in search results.
- Is not recommended in the Do You Know widget.
- Is not displayed as a link between two people in the Who Connects Us widget.
The list of users who are included in the social analytics service is processed when the Search application starts up, and the list is only refreshed on completion of social analytics indexing tasks.
Procedure
-
Start the wsadmin client from one of the following directories on the system on which you
installed the Deployment Manager:
Linux:
app_server_root\profiles\dm_profile_root\bin
Windows:
where app_server_root is the WebSphere® Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.app_server_root/profiles/dm_profile_root/bin
You must start the client from this directory or subsequent commands that you enter do not execute correctly.
- After the wsadmin command environment
has initialized, enter the following command to initialize the Search
environment and start the Search script interpreter:
execfile("searchAdmin.py")
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, you must pick the node where the file is stored.When the command is run successfully, the following message displays:Search Administration initialized
- To exclude a user from the social analytics service, enter
one of the following commands.
- SearchService.optOutOfSandByEmail(String email)
Excludes the user with the specified email address from the social analytics service.
This command takes a single argument:- email. The email address of the user who is to be excluded from the social analytics service. This argument is a string value.
For example:SearchService.optOutOfSandByEmail("ajones10@example.com")
- SearchService.optOutOfSandByExId(String externalId)
Excludes the user with the specified external ID from the social analytics service.
This command takes a single argument:- externalId. The external ID of the user who is to be excluded from the social analytics service. This argument is a string value.
For example:SearchService.optOutOfSandByExId("11111-1111-1111-1111")
- To re-enable a user for the social analytics service, use
one of the following commands.
- SearchService.optIntoSandByEmail(String email)
Includes the user with the specified email address in the social analytics service.
This command takes a single argument:- email. The email address of the user who is to be included in the social analytics service. This argument is a string value.
For example:SearchService.optIntoSandByEmail("ajones10@example.com")
- SearchService.optIntoSandByExId(String externalId)
Includes the user with the specified external ID in the social analytics service.
This command takes a single argument:- externalId. The external ID of the user who is to be included in the social analytics service. This argument is a string value.
For example:SearchService.optIntoSandByExId("11111-1111-1111-1111")