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 Ous View, is designed to query and retrieve Organizational Units (OUs) from an Active Directory service. It allows users to specify filtering conditions, pagination controls, and sorting options to customize the data retrieval. This operation is useful in scenarios where you need to programmatically access and manage directory structures within an enterprise environment, such as syncing AD OUs with other systems, auditing organizational hierarchy, or building custom reports.
Practical examples include:
- Fetching a subset of OUs based on specific attributes or conditions.
- Paginating through large sets of OUs to process them in batches.
- Ordering the results by certain fields like name or creation date.
Properties
| Name | Meaning |
|---|---|
| X USER ID | User Id header value required for authentication or identification in the request. |
| Condition | Query condition string to filter which OUs to retrieve (e.g., LDAP filter syntax). |
| Skip | Number of records to skip, used for pagination. |
| Limit | Maximum number of records to return, used for pagination. |
| Order By | Field(s) to order the results by (e.g., "name asc", "createdDate desc"). |
Output
The output of this operation is JSON data representing the retrieved Active Directory Organizational Units matching the specified query parameters. Each item in the output typically contains details about an OU such as its distinguished name, attributes, and possibly metadata depending on the API response.
If binary data were involved (not indicated here), it would represent files or attachments related to the OUs, but this operation focuses on JSON structured data only.
Dependencies
- Requires an API key credential or similar authentication token configured in n8n to authorize requests against the Active Directory API.
- The node depends on the external Active Directory service's API endpoint that supports querying OUs with filtering, pagination, and ordering.
- No additional environment variables are explicitly required beyond standard API credentials.
Troubleshooting
- Missing or invalid X USER ID: The operation requires a valid user identifier header; ensure this is provided and correct.
- Invalid query condition syntax: If the condition string is malformed or unsupported by the API, the request may fail or return no results. Validate the query format according to the Active Directory API documentation.
- Pagination issues: Setting
skiporlimitincorrectly might result in empty responses or incomplete data. Verify these values align with expected dataset size. - Order By errors: Using unsupported fields or incorrect syntax in the order_by parameter can cause errors or ignored sorting.
- Authentication failures: Ensure the API key or authentication token is valid and has sufficient permissions to read OUs.
Links and References
- Active Directory LDAP Query Syntax
- General Active Directory API Documentation
- n8n Documentation on HTTP Request Node (for understanding routing and headers)