Actions222
- Application Baseline Actions
- Attack Surface Actions
- Backup Software Actions
- EDR Actions
- Tags Actions
- PII Actions
- External Scan Actions
- Settings Actions
- Compliance Assessment Actions
- Reports Actions
- Compliance Actions
- Jobs Actions
- Active Directory Actions
- Retrieve Ad Roles
- Retrieve Ad User Licenses
- Retrieve Azure Licenses
- Retrieve Azure Ad Logs
- Retrieve Azure Secure Score
- Retrieve Ad Password Policies
- Retrieve Ad Groups View
- Retrieve Ad Ous View
- Retrieve Ad Gpos View
- Retrieve Ad Computers View
- Retrieve Ad Users View
- Retrieve Ad Domain Details
- Retrieve Ad Gpos Details
- Retrieve Get Ous Details
- Retrieve Get Groups Details
- Retrieve Ad Group Users
- Retrieve Ad Group Computers
- Retrieve Get User Details
- Retrieve Get Computer Details
- Retrieve Ad Roles Details
- Retrieve Ad Roles Member
- Retrieve Ad Basic Info
- Audit Log Actions
- Ad Audit Actions
- Asset Data Actions
- Retrieve Bios Info
- Retrieve Bio Info
- Retrieve Browser Extensions
- Retrieve Browser Extension
- Retrieve Ciphers View
- Retrieve Cipher View
- Retrieve Windows Protection Status
- Retrieve Window Protection Status
- Retrieve Asset Compliance Report Card
- Retrieve Asset Firewall Policy
- Retrieve Asset Installed Drivers
- Retrieve Asset Installed Driver
- Retrieve Asset Interface
- Retrieve Asset Msdt
- Retrieve Asset Ports
- Retrieve Asset Port
- Retrieve Asset Security Report Data
- Retrieve Asset Security Report Datum
- Retrieve Asset Shares
- Retrieve Asset Share
- Retrieve Asset Storages
- Retrieve Asset Storage
- Retrieve Asset Unqouted Services
- Retrieve Asset Unqouted Service
- Retrieve Asset User Shares
- Retrieve Asset User Share
- Retrieve Asset Video Info
- Retrieve Asset Windows Reboot Required
- Retrieve Asset Window Reboot Required
- Vulnerabilities Actions
- Firewall Actions
- Integration Actions
- Retrieve Integration Credentials
- Retrieve Integration Credential
- Create Integration Credential
- Update Integration Credential
- Delete Integration Credential
- Retrieve Integration Rules
- Retrieve Integration Rule
- Create Integration Rule
- Update Integration Rule
- Delete Integration Rule
- Retrieve Company Mappings
- Retrieve Company Mapping
- Create Company Mapping
- Update Company Mapping
- Delete Company Mapping
- Event Set Actions
- Ticket Template Actions
- Scheduler Actions
- Credentials Actions
- Asset Actions
- Retrieve Records
- Retrieve Assets
- Retrieve Asset
- Create Asset
- Update Asset
- Delete Asset
- Retrieve Asset Stats
- Retrieve Asset Stat
- Retrieve Asset View
- Retrieve Cron Jobs
- Retrieve Kernel Modules
- Retrieve Suid Permissions
- Retrieve Ufw Firewall Rules
- Retrieve Selinux Settings
- Retrieve Asset Iptables Rules
- Retrieve Asset Users
- Retrieve Asset Processes Running
- Retrieve Asset Services
- Retrieve Asset Patches Info
- Retrieve Asset Firewall Rules
- Retrieve Asset Registry Misconfiguration
- Retrieve Asset Open Ports
- Retrieve Notification Tickets View
- Retrieve System Events View
- Discovery Settings Actions
- Retrieve Discovery Settings
- Retrieve Discovery Setting
- Create Discovery Setting
- Update Discovery Setting
- Delete Discovery Setting
- Retrieve Agent Discoverysettings Mapping
- Retrieve Agent Discoverysetting Mapping
- Create Agent Discoverysetting Mapping
- Update Agent Discoverysetting Mapping
- Delete Agent Discoverysetting Mapping
- Auth Actions
- Company Actions
- Agent Actions
Overview
This node operation, Retrieve Ad Roles under the Active Directory resource, is designed to query and fetch Active Directory roles based on specified criteria. It allows users to retrieve role information filtered by conditions, control pagination through skip and limit parameters, and order the results. This is useful in scenarios where you need to programmatically access user roles from an Active Directory system for auditing, reporting, or integration with other systems.
Practical examples include:
- Fetching all roles assigned to a specific user.
- Retrieving roles that meet certain conditions (e.g., roles created after a certain date).
- Paginating through large sets of roles to process them in batches.
- Sorting roles by name or creation date.
Properties
| Name | Meaning |
|---|---|
| X USER ID | User Id - The identifier of the user making the request; sent as a header X-USER-ID. |
| Condition | Query Condition - A filter expression to narrow down which roles to retrieve. |
| Skip | Skip No of Records - Number of records to skip for pagination purposes. |
| Limit | Limit - Maximum number of records to return. |
| Order By | Order By - Field(s) to sort the returned roles by. |
Output
The node outputs JSON data representing the retrieved Active Directory roles matching the query parameters. Each item in the output corresponds to a role object with its associated properties as returned by the Active Directory API.
If binary data were involved (not indicated here), it would typically represent files or attachments related to roles, but this operation focuses on JSON role data only.
Dependencies
- Requires an API key credential for authenticating with the Active Directory service.
- The node depends on the Active Directory API endpoint that supports querying roles with headers and query parameters as specified.
- Proper configuration of the API authentication within n8n is necessary.
Troubleshooting
- Missing or invalid X USER ID header: The API may reject requests without a valid user ID header. Ensure the "X USER ID" property is set correctly.
- Invalid query condition syntax: If the condition string is malformed, the API might return errors or no results. Validate the condition format according to the Active Directory API documentation.
- Pagination issues: Setting skip or limit incorrectly (e.g., negative numbers) could cause unexpected results or errors.
- Order By field not recognized: Using unsupported fields in the "Order By" property may result in unsorted or error responses.
- Authentication failures: Verify that the API key or token used is valid and has sufficient permissions to read roles.
Links and References
- Refer to your Active Directory API documentation for details on supported query conditions, ordering fields, and response structure.
- General n8n documentation on HTTP Request nodes can help understand how headers and query parameters are routed.
- For best practices on pagination and filtering, consult the API provider’s guidelines.