General discussion
-
CreatorTopic
-
January 17, 2024 at 12:24 am #4210618
Unable to detect the roles assigned to a user using simple if-else loop in
by srikanthbollu1707 · about 1 year, 1 month ago
Tags: Community, Operating Systems, Security
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()”.
-
CreatorTopic
All Comments
-
AuthorReplies
-
-
January 17, 2024 at 5:15 am #4210646
Re: unable
by kees_b · about 1 year, 1 month ago
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. -
January 17, 2024 at 11:00 pm #4210868
Reply To: Unable to detect the roles assigned to a user using simple if-else loop in
by raufkhan89321 · about 1 year, 1 month ago
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 1 year, 1 month ago by
raufkhan89321. -
This reply was modified 1 year, 1 month ago by
kees_b.
-
This reply was modified 1 year, 1 month ago by
-
-
AuthorReplies