getOrganizationsAccessReport

Retrieves the service last accessed data report for Organizations that was previously generated using the <a>GenerateOrganizationsAccessReport</a> operation. This operation retrieves the status of your report job and the report contents.

Depending on the parameters that you passed when you generated the report, the data returned could include different information. For details, see GenerateOrganizationsAccessReport.

To call this operation, you must be signed in to the management account in your organization. SCPs must be enabled for your organization root. You must have permissions to perform this operation. For more information, see Refining permissions using service last accessed data in the IAM User Guide.

For each service that principals in an account (root user, IAM users, or IAM roles) could access using SCPs, the operation returns details about the most recent access attempt. If there was no attempt, the service is listed without details about the most recent attempt to access the service. If the operation fails, it returns the reason that it failed.

By default, the list is sorted by service namespace.

Samples


fun main() { 
   //sampleStart 
   // The following operation gets details about the report with the job ID examplea 1234 b567 cde8
// 90fg123abcd4
val resp = iamClient.getOrganizationsAccessReport {
    jobId = "examplea-1234-b567-cde8-90fg123abcd4"
} 
   //sampleEnd
}