Creating OneDrive storage provider type

This section provides information about how to properly configure the OneDrive™ storage provider type.

Before you begin

The following list shows the prerequisites to create a OneDrive storage provider:

  • IBM RPA on premises environment.

  • User with the following permissions:

    • View storage provider types
    • Manage storage provider types

    See the Checking user permissions topic to learn how to check your user permissions.

  • Microsoft™ Azure🡥 account.

Procedure

Follow the steps to create a OneDrive™ app:

Create your OneDrive application

  1. Navigate to the Azure Portal🡥 website.

  2. Log in with your account.

  3. Under Azure services, click More services.

  4. Search for Microsoft Entra ID and select it.

  5. On the left side menu, click App registrations.

  6. Click the New registration button.

  7. Name your app, such as IBM RPA Storage.

  8. In Supported account types, select the option Accounts in this organizational directory only (Single tenant).

  9. In Redirect URI, select Web and enter the URL to your IBM RPA's API, such as https://192.51.100.38:7790/integration/oauth2, where 192.51.100.38 is the server IP and 7790 is the port used by the IBM RPA's API, with the OAuth2 specifications /integration/oauth2. Following are examples of valid URLs with the OAuth2 specifications:

    • https://192.51.100.38:7790/integration/oauth2
    • https://api.example.com/integration/oauth2

    🛈 Remember: Replace the URL with the appropriate server API URL.

  10. Click Register to create the credentials.

Get the Client ID and Client secret

  1. On the Overview page, click Add a certificate or secret.
  2. Click the New client secret button.
  3. Enter a Description for your credential, and set the expiration date for the credential.
  4. Click Add.
  5. The Client secret is listed on the table under the Secret ID column.
  6. Go to the Overview page on the left side menu.
  7. The Client ID is next to the Application (client) ID field.

Configure the storage provider type in the IBM Robotic Process Automation

  1. Log in to IBM RPA Control Center.

  2. On the side menu, click Storage and go to the Storage provider type tab. For older versions of IBM RPA, go to Configuration > Storage Provider Type.

  3. Click the Create storage provider type button.

  4. Select OneDrive as the Type.

  5. In the Client ID field, enter your Client ID.

  6. In the Client Secret field, enter your Client secret.

  7. In the Redirect URL field, enter the Redirect URL you have previously configured in the credentials page, such as https://192.51.100.38:7790/integration/oauth2.

  8. In the Authorization URL field, enter https://login.microsoftonline.com/common/oauth2/v2.0/authorize .

  9. In the Authorization Template Parameter field, enter the following code snippet:

    client_id={clientId}&response_type=code&redirect_uri={redirectUri}
    

    🛈 Remember: IBM RPA automatically replaces the values of {clientId} and {redirectUri} with the values defined in Client ID and Redirect URL, respectively.

  10. In the Token URL field, enter https://login.microsoftonline.com/common/oauth2/v2.0/token .

  11. In the API URL field, enter https://graph.microsoft.com/v1.0/ .

  12. In Scopes field, enter offline_access files.readwrite .

  13. Click Save.

Result

As result, you can view a notification that states that the storage provider type was added successfully. You can also see it in the list of storage provider types.

If it fails, you can also view a notification. In this case, review the data that you entered and retry to create the storage provider type.

What to do next

Create a new storage provider to use it. See Creating storage provider integrations for more information.