How to unregister or upgrade a registered application for SharePoint

I have an application that will be used in my SharePoint tenant. From the application developer, I received the client identifier, client secrecy, application domain, return address.

When registering my application through Appregnew.aspx, I used the wrong return URL and client secret. Now, if I click on this application, it gives me the error "An error occurred ....".

To use this application, I need to update the registered application with my correct secret key and return the URL. I find no way. How to upgrade or unregister a SharePoint application.

+5
source share
3 answers

Install the AzureAD PowerShell module.

Then run the following commands to remove the registered SharePoint application:

Connect-AzureAD $app = Get-AzureADServicePrincipal | Where-Object {$_.AppId -eq "your client ID"} Remove-AzureADServicePrincipal -ObjectId $app.ObjectId 

After that, you can follow the instructions in the Santosi Epilis answer.

0
source

To get information on registering your application, use the link below

{SiteURL} / _ layouts /15/appinv.aspx

Then update your data using the link below with the existing client ID (do not use the client ID and client secret)

{SiteURL} / _ layouts /15/appregnew.aspx

This will update the registration data of your application for the existing customer ID.

Use the link for more information https://msdn.microsoft.com/en-us/library/office/jj687469.aspx

+6
source

Not an official / documented way, but it works for me in SharePoint Online

1) I installed Azure AD PS

2) Then run the following PS script Connect-MsolService $appPrincipal = Get-MsolServicePrincipal -ServicePrincipalName client_id Remove-MsolServicePrincipal -ObjectId $appPrincipal.ObjectId

3) Then go to {SiteUrl} / _ layouts / 15 / appinv.aspx and try looking for the client_id application. You may receive an unexpected error or information (for example, a new identifier)

4) Then go to {SiteUrl} / _ layouts / 15 / appregnew.aspx and register the application again with the same client ID

+5
source

All Articles