Hello Robert Thomson,
As per your request, you are looking to export role assignments for PIM-enabled security groups.
Please note that downloading role assignments from Subscription > Access Control (IAM) will not include these groups, as PIM security groups are managed in Microsoft Entra ID and are not treated as resources within the subscription.
To retrieve this information, you can use the Microsoft Graph API to get a list of active and eligible role assignments for PIM groups. However, the response will include the role assignments, but not the group names directly.
Once you identify the group name separately, you can then retrieve and export the list of users within that group.
Please refer to the documentation below for more details.
If you have any questions, feel free to reach out — I’m happy to assist you.