

# AccessDetail
<a name="API_AccessDetail"></a>

An object that contains details about when a principal in the reported Amazon Organizations entity last attempted to access an Amazon service. A principal can be an IAM user, an IAM role, or the Amazon Web Services account root user within the reported Organizations entity.

This data type is a response element in the [GetOrganizationsAccessReport](https://docs.amazonaws.cn/IAM/latest/APIReference/API_GetOrganizationsAccessReport.html) operation.

## Contents
<a name="API_AccessDetail_Contents"></a>

 ** ServiceName **   
The name of the service in which access was attempted.  
Type: String  
Required: Yes

 ** ServiceNamespace **   
The namespace of the service in which access was attempted.  
To learn the service namespace of a service, see [Actions, resources, and condition keys for Amazon services](https://docs.amazonaws.cn/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html) in the *Service Authorization Reference*. Choose the name of the service to view details for that service. In the first paragraph, find the service prefix. For example, `(service prefix: a4b)`. For more information about service namespaces, see [Amazon service namespaces](https://docs.amazonaws.cn/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) in the * Amazon General Reference*.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[\w-]*`   
Required: Yes

 ** EntityPath **   
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated principal last attempted to access the service. Amazon does not report unauthenticated requests.  
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the [tracking period](https://docs.amazonaws.cn/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period).  
Type: String  
Length Constraints: Minimum length of 19. Maximum length of 427.  
Pattern: `^o-[0-9a-z]{10,32}\/r-[0-9a-z]{4,32}[0-9a-z-\/]*`   
Required: No

 ** LastAuthenticatedTime **   
The date and time, in [ISO 8601 date-time format](http://www.iso.org/iso/iso8601), when an authenticated principal most recently attempted to access the service. Amazon does not report unauthenticated requests.  
This field is null if no principals in the reported Organizations entity attempted to access the service within the [tracking period](https://docs.amazonaws.cn/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period).  
Type: Timestamp  
Required: No

 ** Region **   
The Region where the last service access attempt occurred.  
This field is null if no principals in the reported Organizations entity attempted to access the service within the [tracking period](https://docs.amazonaws.cn/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period).  
Type: String  
Required: No

 ** TotalAuthenticatedEntities **   
The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to access the service in the tracking period.  
Type: Integer  
Required: No

## See Also
<a name="API_AccessDetail_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/iam-2010-05-08/AccessDetail) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/iam-2010-05-08/AccessDetail) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/iam-2010-05-08/AccessDetail) 