IDOL Community Component 23.4

# RoleDoesUserHavePrivilege

Allows you to determine whether a user has a specific privilege.

## Example

    http://12.3.4.56:9030/action=RoleDoesUserHavePrivilege&Privilege=Database&Value=Archive&UserName=Peter Smith

This action checks if the user `Peter Smith` has the privilege `Database` with the value `Archive`.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
Privilege | The name of the privilege to find.
Value | The privilege value.

You must set one of the following parameters.

Parameter | Description
--- | ---
UID | The user ID of the user to check the privilege for.
UserName | The user name of the user to check the privilege for.

## Optional Parameters

This action accepts the following optional parameters.

Parameter | Description
--- | ---
EmailAddress | The e-mail address of the user.
FieldFieldName | A field for the user.
Recurse | Checks ancestors of the user roles for the specified privilege.
Security | The security field for the user.

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
FileName | The file to write output to.
ForceTemplateRefresh | Forces the server to load the template from disk.
Output | Writes output to a file.
ResponseFormat | The format of the action output.
Template | The template to use for the action output.
TemplateParamCSVs | A list of variables to use for the specified template.

## Comments

You must set one of the following parameters:

- UID

- UserName

Copyright 2023 Open Text
Version 23.4 | Last updated September 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL Community Component 23.4

Topic Title: RoleDoesUserHavePrivilege