Zerg00s / FlowPowerAppsMigrator

Converts SharePoint Data sources for the MS Flow and PowerApps to a new tenant of your choice.
MIT License
138 stars 34 forks source link

Unable to login - Forbidden #33

Closed tonjewaasjo closed 2 years ago

tonjewaasjo commented 2 years ago

I am a site collection admin on both sites and also a global admin on the tenant. This worked on the earlier version, but after the upgrade I did today, it hasn't worked. I got colleague of mine to log in with his user (FlowPowerAppsMigrator workes on his pc), but he got the same error. Any suggestions? Error

Zerg00s commented 2 years ago

hi @tonjewaasjo If you already have enough permissions, try running the script with CLEAR_CREDENTIALS_CACHE set to True

Zerg00s commented 2 years ago

@tonjewaasjo I've published a new version that checks required permissions and displays a message if your permissions are insufficient. Can you try in, please? https://github.com/Zerg00s/FlowPowerAppsMigrator/releases/tag/3.8.2

tonjewaasjo commented 2 years ago

I downloaded that version and tried it. I get the message "⚠️ [Error] make sure you have FULL CONTROL at the source site: https://[domain].sharepoint.com/sites/[sitecollectionname]". The user is a SharePoint admin, and owner of the site collection. As mention before, a colleague of mine is using this on his computer and it works. When he tries on mine, it fails (he uses the same user). Can this error be anything else apart from rights?

Zerg00s commented 2 years ago

The issue might be related to the cached permissions. Perhaps the authentication window automatically logs you in in the source site. To make sure you are prompted to log in, try setting CLEAR_CREDENTIALS_CACHE to False when you run the migrator:

image

tonjewaasjo commented 2 years ago

That worked! Thanks a lot =)