General discussion

  • Creator
    Topic
  • #4210618

    Unable to detect the roles assigned to a user using simple if-else loop in

    by srikanthbollu1707 ·

    I am trying to write a SailPoint IIQ workflow where if the user is an Employee and has Role 1 assigned, the loop will return true. Also if the User is a Contingent Worker and has the Role 2 assigned, the loop will return true. Else the loop will return “Role not provisioned”. The user is an Employee and is assigned the Role 1, but still the loop return “Role not provisioned”.

    The flow is entering the main ELSE loop, where it is able to read the empType, but not able to read the “assignedRoles.contains()”.

You are posting a reply to: Unable to detect the roles assigned to a user using simple if-else loop in

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Comments

  • Author
    Replies
    • #4210646
      Avatar photo

      Re: unable

      by kees_b ·

      In reply to Unable to detect the roles assigned to a user using simple if-else loop in

      That means that something is wrong with your code. Without the coding and without the Sailpoint IIQ manuals, it’s impossible to say what the error is.
      Better try there own developer forums.

    • #4210868

      Reply To: Unable to detect the roles assigned to a user using simple if-else loop in

      by raufkhan89321 ·

      In reply to Unable to detect the roles assigned to a user using simple if-else loop in

      It seems like there might be an issue with the condition checking the assigned roles. Double-check the syntax and ensure that the comparison is accurate. Here’s a suggestion for your SailPoint IIQ workflow:

      java
      Copy code
      if (empType.equals(“Employee”) && assignedRoles.contains(“Role 1”)) {
      return true;
      } else if (empType.equals(“Contingent Worker”) && assignedRoles.contains(“Role 2”)) {
      return true;
      } else {
      return “Role not provisioned”;
      }
      Ensure that empType and assignedRoles are correctly fetched, and the comparison conditions are precise. If the problem persists, consider debugging the workflow to pinpoint the exact point of failure.

      Note: spam link removed by moderator.

      • This reply was modified 4 months ago by raufkhan89321.
      • This reply was modified 4 months ago by Avatar photokees_b.
Viewing 1 reply thread