MarketplaceListingsCustom ActivityHP Inc - SharePoint Silent Authentication

HP Inc - SharePoint Silent Authentication

Supported by Publisher
Custom Activity

0 reviews

0

HP Inc - SharePoint Silent Authentication

Supported by Publisher
Custom Activity

0 reviews

0


Summary

SharePoint App-Only is the older, but still very relevant, model of setting up app-principals. This model works for both SharePoint Online and SharePoint 2013/2016/2019 on-premises and is ideal to prepare your applications for migration from SharePoint on-premises to SharePoint Online. With this UiPath Activity, you will be able to connect to SharePoint silently and perform different SharePoint actions like (Get Files Folder / Create/Delete Files & Folder)

carouselImage0

Overview

Initial Setup:

  1. Setting up an app-only principal with tenant permissions
Navigate to a site in your tenant (e.g. https://contoso.sharepoint.com) and then call the appregnew.aspx page (e.g. https://contoso.sharepoint.com/_layouts/15/appregnew.aspx). In this page click on the Generate button to generate a client id and client secret and fill the remaining information like shown in the screen-shot below.

2. Once Clientid & Client Secret generated, follow the below step

Next step is granting permissions to the newly created principal. Since we're granting tenant scoped permissions, this granting can only be done via the appinv.aspx page on the tenant administration site. You can reach this site via https://contoso-admin.sharepoint.com/_layouts/15/appinv.aspx. Once the page is loaded add your client id and look up the created principal.

3. To grant permissions, you'll need to provide the permission XML that describes the needed permissions. Since this application needs to be able to access all sites + also uses search with app-only, it needs the below permissions:
XMLCopy
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
</AppPermissionRequests>

Benefits


Published: Jan 14, 2021 | Updated: Jan 14, 2021

Trusted Source


License

MIT


Tags


Compatibility

UiPath Studio 2018 and above


Dependencies

SharePoint Library



Support

Phone: 7406449922

Email: sishira.mishra@hp.com

2 Weeks