How Can We Help?
< All Topics

07. How to extend and get the expiration period for SharePoint Credentials (App-Only)

Quickly Navigate to Popular Sections:

How to get expiration period for SharePoint Credentials

Our guide to check the expiration date of SharePoint credentials using PowerShell, requiring SharePoint Client ID and Global Admin permissions.

Step 1: Open PowerShell ISE as administrator in the local computer:
Hingepoint Proconnector |

Step 2: Put the script from below and press F5:

Note: Please paste your current SharePoint Client ID to the script ($ClientID). You can copy SharePoint Client ID from any SharePoint integration on the HingePoint Sync management portal.

if (!(Get-Module AzureAD))
    Install-Module AzureAD -Confirm:$false -Force -ErrorAction Stop
    import-module AzureAD

# Parameters
$ClientID = "11111111-1111-1111-1111-111111111111"

# Connect to AzureAD

# Get the Client ID
$App = Get-AzureADServicePrincipal -All $true | Where-Object {$_.AppID -eq $ClientID}

# Get the Current Expiry Date
$CurrentExpiryDate = (Get-AzureADServicePrincipalPasswordCredential -ObjectId $App.ObjectId).EndDate
Write-host "Current Expiry Date:" $CurrentExpiryDate -BackgroundColor Green

Hingepoint Proconnector |

Step 3: Enter credentials of user with Global Admin permissions to O365 tenant:
Hingepoint Proconnector |
Hingepoint Proconnector |


Step 4: Find new expression End Date property in the output of the script:
Hingepoint Proconnector |


How to Edit your SharePoint Integrations after renewing the tokens?

Steps to update the expiry date in SharePoint Integrations after renewing tokens, including editing the 'End Date' in File Sync Portal and assistance for multiple integrations.

Step 1: You need to edit the Expiry Date for all the existing SP Credentials in your File Sync Portal under Integrations -> Edit
Hingepoint Proconnector |

Step 2: Select your SP Integrations and update the ‘End Date’ field and click on Save. The SP Integrations’ End Date must be edited for the next 10 years.
Hingepoint Proconnector |

Step 3: In case if you have multiple SP Integrations to be edited, please reach out to with your renewal date and we can get them updated for you.