When trying to upload an app to App Store in Xcode (7.1) I\'m prompted with this error message:
iTunes Store operation failed. You are not authorised to u
The Your user account is attached to several iTunes providers. Create separate accounts for each provider before logging in.
error seems to be a limitation/mismatch between Xcode and the new multi-provider/provider switching feature introduced to iTunes Connect on 11/13/2015.
To get around it, make sure you've already created the app you are trying to submit in iTunes Connect under the correct provider. You'll also need to make sure the bundle ID matches on the archived app and the record for it you create in iTC.
Additionally, your account must have the developer, app manager or admin role to be able to successfully upload builds.
I've faced the same issue (account is attached to several iTunes providers) when I've downloaded Application Loader from iTunes Connect. The link on iTunes Connect download the version 3.0 of application loader that not supports multi-accounts.
To download the latest version and use multi-accounts you should download the latest version of Xcode. Application Loader is part of Xcode (Xcode > Open Developer Tool > Application Loader). You can download Xcode directly from the Mac App Store.
For more information on this delivery mechanism, see the Application Loader User Guide.
Ben's answer notes this, but I want to call it out:
Make sure the bundle id of your app matches the expected bundle id in iTunes Connect.
This error message occurred for me when the bundle ids did not match.
I found that when I switched the project from manual managed signing, to automatically manage signing the issue hit me (I'd done this to add a new device for testing) - switching back to manual signing fixed the issue.
I have found a workaround to this issue. Go to iTunes connect and login with the admin itunes connect account. Create a new apple id with a new email account. Make that account the admin under users and roles.
After that sign in at least once to your new itunes connect account. Then proceed your app submission with application loader with the new account. I was facing the exact same issue and i fixed it this way!