To properly test your xml documents for use with the Application Integration Framework (AIF) in AX 2009, it is best to use the File Adapter as it is easy to set up. You can use any Adapter for when you go-live.
It is important to understand how the AIF file adapter security authorization works as it will save you time and frustration. Below we will discuss the submitting user, source endpoint user, file ownership, and endpoint security.
The security is determined by the “submitting user” and the “source endpoint user”. The "source endpoint user" is specified in the <SourceEndpointUser></SourceEndpointUser> tag in the xml document. This is the user on whose authority the inbound request is being made. The format is Domainname\Domainuser. In the absence of the "source endpoint user" not being specified in the tab, it uses the "submitting user id" as the "source endpoint user".
The "submitting user" is determined from the Windows file owner. You cannot specify the windows file ownership to be a windows group as there is no way of translating a windows group to an AX User or AX User group. So the file ownership must be set to a specific user. It then uses the specific user, identifies if that user is an internal AX user, determines the AX group membership, and if rights to the endpoint. NOTE: In Windows 2008, if the submitting user is in not a local administrator in Windows, then the ownership is automatically set to the submitting user. However if the submitting user is a local administrator, then the ownership is set to the local Administrators group (not the individual submitting/creator user account).
If security is not set up properly, you will receive, "The user is not authorized to use this Endpoint". Below are some examples to illustrate: