Microsoft OneDrive Dynamic Account

In this article

Overview

Use this account type to connect Microsoft OneDrive Snaps with data sources that use Microsoft OneDrive Dynamic accounts.

Expression-enabled authentication fields, such as Username, Password, and Client Secret, support Secrets Management, a SnapLogic add-on that allows you to store endpoint credentials in a third-party secrets manager, such as AWS Secrets Manager, Azure Key Vault, or HashiCorp Vault. During validation and execution, pipelines obtain the credentials directly from the secrets manager. Learn more: Configure Accounts to use secrets.

Prerequisites

Limitations and Known Issues

None.

Account Settings


Field Field TypeDescriptionDefault ValueExample 
LabelString

Required. Unique user-provided label for the account.

N/ADocs_OD_Dynamic_Account
Access token String/Expression

Required. Enter the Access Token generated using the authorization code. See Access Token Generation for details. 

N/AN/A
Access Token TypeDrop-down list

Required. Choose the appropriate access token type for your account from the following options:

  • on behalf of user (authorization_code grant type): Authenticates on behalf of an individual user. 

  • on behalf of application (client credentials grant type): Authenticates as an application through the Azure portal.

on behalf of user (authorization_code grant type)on behalf of application (client credentials grant type)
ApplyButtonClick this button to save the account.N/AN/A

Access Token Generation

You must generate an Access Token to create and use a Microsoft OneDrive Dynamic account with this Snap Pack. To generate the Access Token:

Step 1: Collect the following details after configuring an Azure portal application to use with your Microsoft OneDrive Snap Pack:

  • Tenant name or Tenant ID
  • Client ID
  • Scope
  • Response Type (token for Access Token and code for Authorization Code)
  • Redirect URLs

Step 2: Fill the details pertaining to your OneDrive (Azure Portal) application in the above URL and load it in a browser or a web-browser control

URLs to use for generating Token and Code

For Application Account: https://login.microsoftonline.com/{Tenant_id}/oauth2/v2.0/authorize?client_id={client_id}&scope={scope}&response_type=token&redirect_uri={redirect_uri}

OR

For User Account: https://login.microsoftonline.com/{Tenant_id}/oauth2/v2.0/authorize?client_id={client_id}&scope={scope}&response_type=code&redirect_uri={redirect_uri}

Step 3: Upon successful authentication and authorization of the application, the URL returns the Access Token inside the redirect_uri passed along side additional parameters, similar to the URL below.

URL with Access Token

For Access Token: {redirect_uri}#access_token=EwC...EB&authentication_token=eyJ...3EM&token_type=bearer&expires_in=3600&scope=onedrive.readwrite&user_id=3626...1d

OR 

For User Account: {redirect_uri}?code=0.AS...iAA&session_state=f26be63e-e1b1-4d64-a3c2-e003b36b7f08#

Use the value of the access_token parameter or the code parameter from these URLs to configure your Microsoft OneDrive Dynamic Account for the respective token type. See OneDrive Authentication and sign-in in OneDrive Developer Center (Microsoft Docs) for more information.

Snap Pack History

 Click here to expand...

Release

Snap Pack Version 

Date

Type

Updates

November 2024main29029 StableUpdated and certified against the current SnapLogic Platform release.
August 2024438patches28439 Latest

Updated the Kotlin library for Microsoft OneDrive Snap Pack with the okhttp library Platform version to avoid Kotlin library dependency conflict.

August 2024

main27765

 

Stable

Updated and certified against the current SnapLogic Platform release.

May 2024

main26341

 

Stable

Updated and certified against the current SnapLogic Platform release.

February 2024436patches25789 Latest

Fixed a performance issue in the Copy Item Snap, which previously resulted in a nameAlreadyExists error when the Snap retried because of a connection reset.

February 2024

main25112

 

Stable

Updated and certified against the current SnapLogic Platform release.

November 2023main23721 StableUpdated and certified against the current SnapLogic Platform release.
August 2023434patches22736 Latest
  • Fixed an issue with the Mircosoft OneDrive Snap Pack where the Snaps displayed Duplicate key OneDrive error. The Snaps now hide the drive details stored in the PreservationHoldLibrary folder when displaying suggestions. You can use the Drive ID to access the PreservationHoldLibrary folder.

  • Fixed an issue with the Mircosoft OneDrive Snaps that displayed a JsonNull error when the shared library list was empty. Now, it displays the message No Suggestions available.

August 2023main22460 StableUpdated and certified against the current SnapLogic Platform release.

May 2023

main21015 

Stable

Upgraded with the latest SnapLogic Platform release.

February 2023432patches20510 Latest

Fixed the following issues with OneDrive Snaps:

  • The Snaps erroneously displayed the permission error when the actual cause was an empty display name in the API.

  • The Snaps failed with a 403 error when selecting a user (in the User field) from the Suggestions list without the User.Read.All permission. Now you can enter the value manually in the User field and proceed with the specific operation you want to perform in OneDrive, even if the Suggestions list is not available.

February 2023main19844 StableUpgraded with the latest SnapLogic Platform release.
November 2022main18944 StableUpgraded with the latest SnapLogic Platform release.
August 2022main17386 StableUpgraded with the latest SnapLogic Platform release.
4.29main15993 StableUpgraded with the latest SnapLogic Platform release.
4.28main14627 StableUpgraded with the latest SnapLogic Platform release.
4.27main12833 StableUpgraded with the latest SnapLogic Platform release.
4.26main11181 

Stable

Upgraded with the latest SnapLogic Platform release.
4.25 Patch425patches10571
Latest

Updated the error output view of the OneDrive - Upload File Snap from a Binary view to a Document view.

4.25main9554 StableEnhanced the Update Share Permissions Snap with the Share Type and Expires fields that enable you to update the share permissions on your OneDrive items shared using the Invite or Link option. If the Share type is link, you can specify the expiry date and time for the URL that is used to share permissions.
4.24main8556 
StableNo updates made.

4.23

main73

 

Stable

Initial release of the Snap Pack with the following Snaps and Accounts:


Related Content