+

Search Tips   |   Advanced Search

Configure the following feature

Edit settings in the profiles-policy.xml file to configure the following feature.

for information about how to start the wsadmin tool.

When the following feature is enabled, users can follow people and content they are interested in to get the latest updates about them. In this release of Connections, the following feature is enabled by default and we cannot disable it. However, we can configure access control settings for the feature according to profile type.

These steps provide information about the properties that we can set and the access levels that we can configure.

  1. Check out the profiles-policy.xml file:

    To get cell name...

  2. Edit the following properties for the following feature as needed.

    profile.following

    This property is always enabled in Connections v5 so that users are always able to see who they are following and who their followers are. We can use the profile.following.add access scope to control who can follow users of the specified profile type.

    profile.following.add

    Controls access to follow users with the specified profile type.

    Access levels for this property can be defined using one of the following scopes:

    • none. No one can follow users with the specified profile type.

    • self. Users with the specified profile type can follow themselves to subscribe to their own updates. Administrators can also follow users with the specified profile type.

    • colleagues_not_self. Only people who belong to the network of the user with the specified profile type, and who have the person role, can follow the user. Users with the specified profile type cannot follow themselves.

      If resourceOwner is specified on the access check, the resource owner constraint must also be met, unless the user has the self role.

    • colleagues_and_self. People who belong to the network of the user with the specified profile type, and who have the person or self role, can follow the user. Users of the specified profile type can also follow themselves to subscribe to their own updates.

      If resourceOwner is specified on the access check, the resource owner constraint must also be met, unless the user has the self role.

    • person_not_self. Only users with the person J2EE role can post follow users with the specified profile type. Users with the specified profile type cannot follow themselves.

      If resourceOwner is specified on the access check, the resource owner constraint must also be met, unless the user has the self role.

    • person_and_self. Users with the person J2EE role can follow users with the specified profile type. Users of the specified profile type can also follow themselves to subscribe to their own updates.

      If resourceOwner is specified on the access check, the resource owner constraint must also be met, unless the user has the self role.

    For example:

    <feature name="profile.following">
      <profileType type="default" enabled="true">
       <acl name="profile.following.add" scope="person_not_self" /> 
      </profileType>
      <profileType type="contractor" enabled="true">
       <acl name="profile.following.add" scope="colleagues_not_self" /> 
      </profileType>
      <profileType type="visitor" enabled="false">
       <acl name="profile.following.add" scope="none" /> 
      </profileType>
    </feature>
    This code sample allows only users who have the person J2EE role to follow users with the specified profile type. For users with the contractor profile type, only the people who belong to the user's network can follow users of that profile type. Following is disabled for users with the visitor profile type.

  3. Save the changes and check the profiles-policy.xml file back in :

      ProfilesConfigService.checkInPolicyConfig()

  4. To exit the wsadmin client, type exit at the prompt.

  5. Stop and restart the Profiles server.


Parent topic:
Configure profile features


Related:

Exposing information about following