Class AccountsWithoutRoles


  • public class AccountsWithoutRoles
    extends Object
    A helper for Leaver triggers that can find accounts from a set of applications that are not associated with any role assignments.
    • Constructor Detail

      • AccountsWithoutRoles

        public AccountsWithoutRoles​(sailpoint.api.SailPointContext context,
                                    Set<String> applicationNames)
        Constructor for AccountsWithoutRoles.
        Parameters:
        context - The SailPointContext to use for the operations.
        applicationNames - A set of application names to check against.
    • Method Detail

      • getAccountsWithoutRoles

        public List<LinkRefgetAccountsWithoutRoles​(sailpoint.object.Identity target)
                                              throws sailpoint.tools.GeneralException
        Get a list of accounts that are not associated with any role assignments for the target identity.
        Parameters:
        target - The target identity to check against.
        Returns:
        A list of LinkRef objects representing accounts without roles.
        Throws:
        sailpoint.tools.GeneralException - If an error occurs while retrieving the accounts.