Configure AEM user profile

You can configure AEM user profile using User Profile Connector configuration in AEM Web Console. Do the following:

  1. Go to AEM web console at https://[server]:[host]/system/console/configMgr.

  2. Look for AEM Forms Data Integrations - User Profile Connector Configuration and tap to open the configuration in edit mode.

  3. In the User Profile Connector Configuration dialog, you can add, remove, or update user profile properties. The specified properties will be available for use in form data model. Use the following format to specify user profile properties:

    name=[property_name_with_location_in_user_profile],type=[property_type]

    Examples:

    • name=profile/phoneNumber,type=string
    • name=profile/empLocation/*/city,type=string
    NOTE
    The * in the above example denotes all nodes under the profile/empLocation/ node in AEM user profile in CRXDE structure. It means that the form data model can access the city property of type string present in any node under the profile/empLocation/ node. However, the nodes that contain the specified property must follow a consistent structure.
  4. Tap Save to save the configuration.

Configure folder for cloud service configurations

NOTE
Configuration for cloud services folder is required for configuring cloud services for RESTful, SOAP, and OData services.

All cloud service configurations in AEM are consolidated in the /conf folder in AEM repository. By default, the conf folder contains the global folder where you can create cloud service configurations. However, you need to manually enable it for cloud configurations. You can also create additional folders in conf to create and organize cloud service configurations.

To configure the folder for cloud service configurations:

  1. Go to Tools > General > Configuration Browser.

  2. Do the following to enable the global folder for cloud configurations or skip this step to create and configure another folder for cloud service configurations.

    1. In the Configuration Browser, select the global folder and tap Properties.
    2. In the Configuration Properties dialog, enable Cloud Configurations.
    3. Tap Save & Close to save the configuration and exit the dialog.
  3. In the Configuration Browser, tap Create.

  4. In the Create Configuration dialog, specify a title for the folder and enable Cloud Configurations.

  5. Tap Create to create the folder enabled for cloud service configurations.

Configure RESTful web services

RESTful web service can be described using Swagger specifications in JSON or YAML format in a Swagger definition file. To configure RESTful web service in AEM cloud services, ensure that you have either the Swagger file on your files ystem or the URL where the file is hosted.

Do the following to configure RESTful services:

  1. Go to Tools > Cloud Services > Data Sources. Tap to select the folder where you want to create a cloud configuration.

    See Configure folder for cloud service configurations for information about creating and configuring a folder for cloud service configurations.

  2. Tap Create to open the Create Data Source Configuration dialog. Specify a name and optionally a title for the configuration, select RESTful Service from the Service Type drop-down, optionally browse and select a thumbnail image for the configuration, and tap Next.

  3. Specify the following details for the RESTful service:

    • Select URL or File from the Swagger Source drop-down, and accordingly specify the Swagger URL to the Swagger definition file or upload the Swagger file from your local filesystem.
    • Select the authentication type — None, OAuth2.0, Basic Authentication, API Key, or Custom Authentication — to access the RESTful service, and accordingly provide details for authentication.
  4. Tap Create to create the cloud configuration for the RESTful service.

Configure SOAP web services

SOAP-based web services are described using Web Services Description Language (WSDL) specifications. To configure SOAP-based web service in AEM cloud services, ensure that you have the WSDL URL for the web service, and do the following:

  1. Go to Tools > Cloud Services > Data Sources. Tap to select the folder where you want to create a cloud configuration.

    See Configure folder for cloud service configurations for information about creating and configuring a folder for cloud service configurations.

  2. Tap Create to open the Create Data Source Configuration dialog. Specify a name and optionally a title for the configuration, select SOAP Web Service from the Service Type drop-down, optionally browse and select a thumbnail image for the configuration, and tap Next.

  3. Specify the following for the SOAP web service:

    • WSDL URL for the web service.

    • Service Endpoint. Specify a value in this field to override the service endpoint mentioned in WSDL.

    • Select the authentication type — None, OAuth2.0, Basic Authentication, Custom Authentication, or X509 Token — to access the SOAP service, and accordingly provide the details for authentication.

      If you select X509 Token as the Authentication type, configure the X509 certificate. For more information, see Set up certificates.
      Specify the KeyStore alias for the X509 certificate in the Key Alias field. Specify the time, in seconds, until the authentication request remains valid, in the Time To Live field. Optionally, select to sign the message body or timestamp header or both.

  4. Tap Create to create the cloud configuration for the SOAP web service.

Configure OData services

An OData service is identified by its service root URL. To configure an OData service in AEM cloud services, ensure that you have service root URL for the service, and do the following:

NOTE
For step-by-step guide to configure Microsoft Dynamics 365, online or on-premises, see Microsoft Dynamics OData Configuration.
  1. Go to Tools > Cloud Services > Data Sources. Tap to select the folder where you want to create a cloud configuration.

    See Configure folder for cloud service configurations for information about creating and configuring a folder for cloud service configurations.

  2. Tap Create to open the Create Data Source Configuration dialog. Specify a name and optionally a title for the configuration, select OData Service from the Service Type drop-down, optionally browse and select a thumbnail image for the configuration, and tap Next.

  3. Specify the following details for the OData service:

    • Service Root URL for the OData service to be configured.
    • Select the authentication type — None, OAuth2.0, Basic Authentication, or Custom Authentication — to access the OData service, and accordingly provide the details for authentication.
    NOTE
    You must select OAuth 2.0 authentication type to connect with Microsoft Dynamics services using OData endpoint as the service root.
  4. Tap Create to create the cloud configuration for the OData service.