People Functions

Overview

Contains a collection of user and group related Functions and Smart Services as detailed below.

Please note that this plugin contains functions that were previously included in the Group Functions plugin and the User and Group Management Application plug-in.

IMPORTANT: Prior to deploying v1.9 or the latest version of the People Functions plugin, please un-deploy the Group Plugins function and the User And Group Management Application plugin if they are present on your environment.

Deprecated functions and smart service are now included out of the box.

Key Features & Functionality

Functions:

  • getgroupbyname
  • getgroupnames
  • getgrouptypename
  • getgroupsoftype
  • getgroupsoftypefromlist
  • getmembergroups
  • getmembergroupsoftype
  • getModifiedUsersByTimestamp
  • getParentsOfGroups
  • getUsersLastPasswordChange
  • retrieveusersecurityrolemap
  • validateEmailAddress
  • getUsersByUUID
  • getGroupTypeAttributes

Smart Services:

  • Add People As Group Admins
  • Unlock User
Anonymous
Parents
  • Hi, I am trying to replace the deprecated API to the latest one in the Plugin code. In SetUserPreferences function, it uses ServiceLocator to get the UserProfileService. I'm not able to avoid the ServiceLocator since it uses User's service context to fetch the User's UserProfileService instance.
    The UserProfileService from the injunction is specific to the default user(who runs the smart service). Is there is any other way to get the User's UserProfileService using the latest library?

    //get user's service context
    ServiceContext sc = ServiceContextFactory.getServiceContext(ups.getUser(user).getUsername());
    UserProfileService userUps = ServiceLocator.getUserProfileService(sc);			
    
    // get user preference and set locale
    UserPreferences up = buildUserPreferences();
    
    //set user preferences
    userUps.setUserPreferences(up);

  • Unfortunately, no. There is no way to remove the deprecated method.

  • Thanks Mike - I'll update our internal guidance notes to reflect this position. We're currently on an exercise to refactor code to remove our reliance on fully deprecated plug ins however we do not have to worry too much about elements of a plug in being deprecated.  Cheers Paul. 

Comment
  • Thanks Mike - I'll update our internal guidance notes to reflect this position. We're currently on an exercise to refactor code to remove our reliance on fully deprecated plug ins however we do not have to worry too much about elements of a plug in being deprecated.  Cheers Paul. 

Children
No Data