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
-
Navigate to the Azure Portal🡥 website.
-
Log in with your account.
-
Under Azure services, click More services.
-
Search for Microsoft Entra ID and select it.
-
On the left side menu, click App registrations.
-
Click the New registration button.
-
Name your app, such as
IBM RPA Storage
. -
In Supported account types, select the option Accounts in this organizational directory only (Single tenant).
-
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
, where192.51.100.38
is the server IP and7790
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.
-
Click Register to create the credentials.
Get the Client ID and Client secret
- On the Overview page, click Add a certificate or secret.
- Click the New client secret button.
- Enter a Description for your credential, and set the expiration date for the credential.
- Click Add.
- The Client secret is listed on the table under the Secret ID column.
- Go to the Overview page on the left side menu.
- The Client ID is next to the Application (client) ID field.
Configure the storage provider type in the IBM Robotic Process Automation
-
Log in to IBM RPA Control Center.
-
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.
-
Click the Create storage provider type button.
-
Select OneDrive as the Type.
-
In the Client ID field, enter your Client ID.
-
In the Client Secret field, enter your Client secret.
-
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
. -
In the Authorization URL field, enter
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
. -
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. -
In the Token URL field, enter
https://login.microsoftonline.com/common/oauth2/v2.0/token
. -
In the API URL field, enter
https://graph.microsoft.com/v1.0/
. -
In Scopes field, enter
offline_access files.readwrite
. -
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.