ServiceNow handles its SharePoint integration as a spoke. The Microsoft SharePoint Online spoke links a ServiceNow instance to SharePoint Online, so a Workflow can create and change sites, folders, files, lists, groups and users through prebuilt actions. Setup needs an Integration Hub subscription, an app registered in Microsoft Azure, a certificate, and a set of records inside ServiceNow.
What a Workflow can do with the spoke
For example, a flow can rename a SharePoint folder when a ServiceNow record is updated.
Site, folder, file, user, group, list, list item and search actions run over the SharePoint Online connection. Change, file, list and site actions run over the SharePoint Graph connection, which the setup section covers below.
The spoke ships two sample flows and three sample subflows, all in draft state. New Attachment on Record creates a folder for a knowledge record when an attachment is added to a table, then copies the attachment into it. Copy a sample into a new application scope before you change it.
Prerequisites, plugins and licensing
The spoke requires an Integration Hub subscription. It depends on five plugins: Integration Hub Runtime, Integration Hub Action Step – REST, Complex Object, Workflow Studio – Dynamic Inputs, and Integration Hub Action Template – Data Stream. Some of these are licensable features, and using one outside the spoke needs its own license. For the wider picture, see how to build, clone or maintain Integration Hub spokes.
The spoke talks to SharePoint through the SharePoint Application Programming Interface, version v1. It does not support on-premise SharePoint, so a site hosted on local servers sits outside this spoke. Both the ServiceNow and the Azure steps call for the admin role.
Register the app and build the certificate in Azure
The spoke authenticates with OAuth 2.0 tokens, so you need a custom app in the Azure portal first. For the broader Azure side of a ServiceNow connection, see the Microsoft Azure integration guide. Open App registrations, choose New registration, and name the app. Under Redirect URI, select the Web platform and enter your instance address followed by the OAuth redirect path. After registration, copy the Application (client) ID, which the Graph connection needs later. Then open Certificates & secrets, create a new client secret, and copy it to a secure place.
The certificate steps depend on your operating system. On Windows, run the PowerShell script that generates the certificate pair. It produces a PFX file and a CER file, and you convert the PFX into a Java Key Store (JKS) file. On a Mac, use the keytool utility: generate a keystore with a password of at least six characters, migrate it to PKCS12 format, then export a CER file.
Upload the CER file under Certificates & secrets. Copy the thumbprint value in full. The thumbprint is hexadecimal, but the connection record expects Base64, so convert it with a hex-to-Base64 tool first.
Under API permissions, add a SharePoint permission, choose Application permissions, expand Sites, and select Sites.FullControl.All. Then grant admin consent for ServiceNow. That grant gives the instance full control of all sites in SharePoint Online. A narrower set is a question for your SharePoint and Azure administrators.
Set up the four ServiceNow OAuth records
Complete these four records in order. For the concept behind the OAuth profile, see OAuth profiles explained.
First, the certificate. Go to System Definition, then Certificates, and open the default Microsoft SharePoint Online Certificate record. Enter the keystore password, choose Java Key Store as the type, attach the JKS file, click Validate Stores/Certificates, and update.
Second, the signing key. Go to System OAuth, then JWT Keys, and open the Microsoft SharePoint Online JWT Keys record. Enter the password that protected the private key when you produced the PFX and CER files, then update.
Third, the JWT provider. Under System OAuth, open JWT Providers and the Microsoft SharePoint Online JWT Provider record. In the Standard Claims list, set the audience to the Microsoft login token address for your tenant, using your directory (tenant) ID. Set the issuer and the subject to the application (client) ID. Update.
Fourth, the OAuth provider. Under System OAuth, open Application Registry, choose New, then Connect to a third party OAuth Provider. Name the profile, such as SharePoint OAuth profile, and enter the client ID and client secret. Select the OAuth API script named OAuthUtilSPJWTOnline and set the default grant type to Client Credentials. Enter the token URL with your tenant ID. In the OAuth Entity Scopes list, add a record named scope whose value is your SharePoint tenant address followed by /.default. Save.
Create the credential, connection and tenant records
Go to Connections and Credentials, then Credentials, choose New, and pick OAuth 2.0 Credentials. Name the record, set it to Active, select the OAuth profile, choose which MID Servers may use it, and set an order such as 100. Save.
Under Connection and Credential Aliases, open the MicrosoftSharePointOnline record and use the Connections tab. Choose New, then fill in a name, the credential, the connection alias, Active, and your SharePoint root address as the Connection URL. On the Attributes tab, enter the Base64 thumbprint and submit.
Open the credential record and click Get OAuth Token under Related Links. If the request fails, confirm the thumbprint is saved on the connection record and that your browser allows pop-ups from the instance. If the token still fails, open the Azure app and select both checkboxes under Implicit grant and hybrid flows.
Last, go to Microsoft SharePoint Online, then Tenants, and choose New. Enter a name, select the alias, type your SharePoint root address without the protocol prefix, and paste the tenant (directory) ID. Submit.
Choosing aliases for one tenant or several
The spoke ships three aliases: SharePoint Online, SharePoint Graph, and SharePoint Graph Root Site Subscription. Each one needs a tenant record. A single-tenant setup uses the existing MicrosoftSharepointOnline alias. For the general alias model, see Integration Hub authentication, aliases and promotion. For more tenants, create an alias, a connection and a credential for each one. Multiple tenants run through the SharePoint Graph alias. To use the Online, Graph and Root Site Subscription actions together, create three tenant records, one tied to each alias.
Set up the SharePoint Graph connection
In the Azure app, under API permissions, add Microsoft Graph delegated permissions: Sites.FullControl.All, Sites.Read.All and Sites.ReadWrite.All from the sites group, plus User.Read. Admin consent becomes mandatory when the Admin consent required column shows Yes for Sites.Read.All.
In ServiceNow, open Workflow Studio, go to the Integrations tab, search for Microsoft SharePoint, and open the MicrosoftSharePointGraph tile. Choose View Details, then Configure. The connection URL is the Microsoft Graph version 1.0 endpoint. The authorization, token and token revocation URLs are built from your tenant ID, which appears under Basic information in the Azure Active Directory view. Choose Configure and Get OAuth Token to create the connection record.
An application registry record appears after the token is issued. Leave its OAuth API script blank. Graph actions also need a record in the Tenant table, named sn_sp_spoke_tenant on the instance.
Which actions each connection can run
| Connection | Action categories | Example actions |
|---|---|---|
| SharePoint Online | Site, folder, file, user, group, list, list item and search | Create Modern Site, Rename A Folder, Attach Sharepoint File To A Record, Look Up User Information By Email, Create List Item |
| SharePoint Graph | Change, file, list and site | Get File Download Link, Look up Files, Look up Drives, Get Site, Create Root Site Subscription |
Create Modern Site makes communication sites and team sites that are not tied to a Microsoft 365 group. Delete Modern Site removes a communication site. Delete Modern Site with O365 Group sits on the Graph side and submits a team site and its Microsoft 365 group for deletion, a removal that can take up to 30 minutes.
Delete Folder removes the folder with no warning or notification, so a condition or an approval step ahead of it is a sensible guard. Check-in File and Check-out File change the file’s state. They do not upload or download content, so run Look Up File Details afterward to read the version number. Share actions require the group or user to belong to the SharePoint tenant account.
Security checks before a flow runs
Flow designers and action designers must run user authorization checks before a flow or action executes. If single sign-on is set up, the action Look Up User Information By Login Name can confirm whether the signed-in user is approved to run spoke actions.
The nine AI agents included with the spoke
The spoke provides nine standalone AI agents: file, list, site, group, list item, user, folder, change, and search management. Install Now Assist for Integration Hub to use them. Agents can also join agentic workflows, and you can clone one to customize it.
Version history and upgrade notes
- 2.11.5 (September 2026) fixed the choice field on Remove Role From Site.
- 2.11.3 (August 2026) fixed token visibility in query parameters and a timing issue.
- 2.11.0 (June 2026) streamlined access control lists.
Version 2.11.5 is the latest spoke version. The Create Site, Delete Site and Look Up Sites actions were deprecated in version 2.7.0 (September 2024). A flow that still calls them should be reviewed, and the modern-site actions added in 2.7.0 are the ones to check first.
Frequently asked questions
Can I change the sample flows that ship with the spoke?
Yes, after you copy one into a new application scope. The shipped versions are in draft state, so edit the copy.
Does Check-out File download the file?
No. Check-out File changes the file’s state to checked out. Use Look Up File Details afterward to get the version number.
Does a setup need the Graph connection too?
Not for the Online actions. The Graph connection adds change tracking, file download links, drive lookups and root site subscriptions, so set it up when a flow needs those.