In principle, a user's permissions for displaying and editing tasks are controlled by permissions in permissions groups.
You can also use a script in the custom task definition to conditionally display a task. For example, this way you can control whether a task is only displayed in the Manager if a certain condition is met.
Example: Display a task loading an object
A task is displayed only when the object is loaded from the database. Adding a new object must not show the task.
If Not Entity.IsLoaded Then
Value = False
Else
Value = True
End If
NOTE: The script does not change the user’s permissions but simply the behavior if the object is loaded in one of the tools. If you want to limit visibility and editability of a task, change the permissions of the permissions groups. For more information, see the One Identity Manager Authorization and Authentication Guide.
To specify a script for conditionally displaying a task
-
In the Designer, select the task in the User interface > Task definitions category.
-
Select the Change main data task.
-
Enter a Visibility script in VB.Net syntax. If the return value is false, task is not displayed in any of the
tools. -
Select the Database > Save to database and click Save.