Hello,
I had a analogue problem. I integrated moodle with opem (It's access management) for SSO. After login, the user can access only the profile page (The user has administrator role!!!). When i try to access administrator pages, I've got this error: Course or activity not accessible. Unfortunately, I don't find the solution...