We have a provider hosted app called “Muhimbi PDF Converter for SharePoint Online”, it is listed on the SharePoint app store using the seller dashboard site. See https://appsource.microsoft.com/en-us/product/office/WA104379298
The remote web app is hosted on the azure and it uses the default URL (https://muhimbi-pcso.azurewebsites.net) provided by the azure web app.
It has been published in the app store for the last three years. There are many users who have installed the app and using it ever since.
We are looking to update the remote web URL as we are moving the web app to another region, and assigning CNAME record (for GDPR and compliance issues). We would like to know what options are available.
Can we do it automatically without affecting existing users? Or will creating a new version of the app solve it? The change should be transparent to the users, the App Store listing – and associated reviews – should continue to work.
We tried all possible options, but we cannot afford any down time or forcing our customers to upgrade to the new App. We have been in contact with various MS teams, but we are being sent around in circles. We already looked at several blogs including following but non of them seem to be helping us.
https://docs.microsoft.com/en-us/office/dev/store/create-or-update-client-ids-and-secrets
https://collab365.org/forum/topics/update-app-domain-and-redurect-url-for-provider-hosted-app/
Also, updating the existing app manifest settings using _layouts/appinv.aspx does not work for SharePoint online app registration. It does not change any details and keeps old app details.
Please assist.
Unfortunately I think your options are slim. I believe the only way to do this is to update the appManifest with the new StartPage URL and then update the app in the store. Then you’ll have to ask your clients to upgrade to the new app.
You may want to keep the old domain and have a message on the page stating how to update to the newest version of Muhimbi.
Correct. However, I am assuming that given, the registration of Office Store Add-ins aren’t done through AppregNew.aspx, that it’s possible the registration will auto update when you receive the upgrade from the store, giving it a new client id/secret/reply URL. Again, only an assumption given how the registration is different between App Catalog and the Store.
I’m surprised their support hasn’t been able to give a definitive answer.
On my local tenant where app was installed after client ID and client secret is registered using AppRegNew.aspx page, I was able to change the redirect URL using following steps:
1. Install Azure AD Module and Run following powershell commands,
Connect-MsolService
$appPrincipal = Get-MsolServicePrincipal -ServicePrincipalName ‘app client id’
Remove-MsolServicePrincipal -ObjectId $appPrincipal.ObjectId
2. Go to AppRegNew.aspx page and enter the old client id and client secret and enter the new App Domain and Redirect Url.
3. Publish new version of the app using same client ID but new Redirect URL and upload it to app catalog site.
4. Go to App >> About page and get the app update. Wait till app is installed.
5. Click on the app, it will take you to the new redirect URL. Note: If app throws token related error then wait up to 24 hours to propagate client secret and try again.
But, it still does not explain how to do the same for App store app. We cannot ask every tenant who installed the app from the app store to run powershell commands. Also, this method will have some down time. I was expecting answer from SharePoint app store support team but they are clueless.
I tried the same on my tenant. I created an upgrade to the app with new redirect URL in appManifest file. Uploaded new version to the app catalog site and updated the app on the site. After upgrade, when I click on the app, appredirect.aspx page gives me warning that “You are being redirected to the following url that was not registered as the app launch url”. SharePoint tenant does not recognize new redirect URL and still expects Old redirect URL. I am not sure it will behave the same for the app store app upgrade.