- Newest
- Most votes
- Most comments
Unfortunately, the AWS Directory Service Data API is not supported for AD Connector directories. This API, which would allow you to programmatically list users and groups, is only available for AWS Managed Microsoft AD directories.
Based on the available information, there isn't a direct API method to retrieve the list of AD users and groups that have been assigned to IAM roles for console access when using an AD Connector directory. The Directory Service Data functionality, which provides capabilities like listing users and groups, is specifically designed for AWS Managed Microsoft AD and doesn't extend to AD Connector directories.
The error message you received ("Directory Service Data feature is not supported for this directory type") confirms this limitation. While you can view this information in the AWS Management Console by navigating to the role in the "Delegate console access" section, there doesn't appear to be an equivalent programmatic method for AD Connector directories.
You might need to consider alternative approaches, such as maintaining this mapping information separately in your own system, or potentially using IAM APIs to retrieve role information, though these wouldn't directly provide the AD user/group mappings you're looking for.
Sources
AWS Directory Service Data - AWS Directory Service
Manage AWS Managed Microsoft AD users and groups with the AWS Management Console, AWS CLI, or AWS Tools for PowerShell - AWS Directory Service
Relevant content
- asked 2 years ago
- asked 6 years ago
