Hi @Abhishek Goyal,
To me you can first export all current Exchange admin groups and memberships with an admin account and then have a check if this user is a member of these groups.
You can run a script like the following example in Exchange Online Powershell to get the membership of Exchange admin groups:
$Result = Get-RoleGroup |
foreach{
$Member = Get-RoleGroupMember $_.Name
new-object psobject -Property @{
GroupName = $_.Name
Membership = $Member
}
}
$Result
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.