Open topic with navigation

# RoleDoesUserHavePrivilege

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

## Example

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

This action uses port `9000` to check if the user `Peter Smith` has the privilege `Database` with the value `Archive`. The user and privilege are stored in the IDOL Community Component that is situated on a machine with the IP address `12.3.4.56`.

## Parameters

Parameter | Description | Required
--- | --- | ---
EmailAddress | The e-mail address of the user. |
FieldFieldName | A field for the user. |
Privilege | The name of the privilege to find. | Yes
Recurse | Checks ancestors of the user roles for the specified privilege. |
Security | The security field for the user. |
UID | The user ID of the user to check the privilege for. | See Comments
UserName | The user name of the user to check the privilege for. | See Comments
Value | The privilege value. | Yes

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
EncryptResponse | Encrypt the output.
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

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm