fastlane: User doesn't have enough permission for user_details_data
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
Running fastlane init, after entering my email and password, 2 teams are listed (app store & in house). I select the in house team and get this error:
Multiple teams found on the Developer Portal, please enter the number of the team you want to use:
1) ******** "****** Inc" (Company/Organization)
2) ******** "****** Incorporated" (In-House)
2
[!] Insufficient permissions for your Apple ID:
User ****.****@****.com doesn't have enough permission for the following action: user_details_data
I’ve been searching for a while what user_details_data refers to, without success. I’m also using an admin account.
Thank you.
Environment
Stack
| Key | Value |
|---|---|
| OS | 10.13 |
| Ruby | 2.2.4 |
| Bundler? | false |
| Git | git version 2.13.5 (Apple Git-94) |
| Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
| Host | Mac OS X 10.13 (17A405) |
| Ruby Lib Dir | ~/.fastlane/bin/bundle/lib |
| OpenSSL Version | OpenSSL 1.0.2g 1 Mar 2016 |
| Is contained | false |
| Is homebrew | true |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 9.0.1 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | en_US.UTF-8 | ✅ |
| LANGUAGE | en_US.UTF-8 | ✅ |
fastlane files:
No Fastfile found
No Appfile found
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.62.1 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 29 (10 by maintainers)
Same issue after running
fastlane initand entering my Apple ID. I’m on an In-House / Enterprise account with an Agent role. I was prompted to enter my password the first time, but not on subsequent trys.I’m having a similar issue. We installed Fastlane and set the Bash environment according to the iOS Setup documentation. When running “fastlane init” inside our project, I get to select a scheme, then enter credentials. With my Apple ID, it immediately bails out with this error. I had another person in our team try it, and he was able to select the team ID, and then had a similar error for the same permission. Could this have to do with the fact that we’re using non-production teams/keys? The other developer is a member of a production team, I believe our accounts have the same permissions in Apple Developer Portal.
I had the same error. The cause for me was that I had an admin account on apple developer site but not on appstore connect. After our agent created an account for me on appstore connect and I logged in and accepted its terms all started to work.
I’m an agent on an Enterprise team. show me doesn’t have enough permission for the following action: user_details_data
I had this issue when my developer account has some terms and conditions to accept in app store connect. Solved by accepting it thru appstore connect.
Hey,
So I’m having the same issue, I am an admin of the team but I don’t have a role in iTC, and fastlane init won’t pass.
Here is the stack for my error :
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/spaceship/lib/spaceship/client.rb:679:in `raise_insuffient_permission_error!': [!] Insufficient permissions for your Apple ID: (Spaceship::Client::InsufficientPermissions) User <my email> doesn't have enough permission for the following action: user_details_data from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/spaceship/lib/spaceship/client.rb:658:in `detect_most_common_errors_and_raise_exceptions' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/spaceship/lib/spaceship/client.rb:631:in `parse_response' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/spaceship/lib/spaceship/client.rb:189:in `user_details_data' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/spaceship/lib/spaceship/client.rb:134:in `teams' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/spaceship/lib/spaceship/tunes/tunes_client.rb:67:in `select_team' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/spaceship/lib/spaceship/tunes/spaceship.rb:30:in `select_team' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane/lib/fastlane/setup/setup_ios.rb:228:in `detect_if_app_is_available' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane/lib/fastlane/setup/setup_ios.rb:34:in `run' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane/lib/fastlane/setup/setup.rb:29:in `run' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane/lib/fastlane/commands_generator.rb:122:in `block (2 levels) in run' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in `call' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in `run' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in `run_active_command' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:66:in `run!' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in `run!' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane/lib/fastlane/commands_generator.rb:304:in `run' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane/lib/fastlane/commands_generator.rb:42:in `start' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/fastlane/lib/fastlane/cli_tools_distributor.rb:75:in `take_off' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.68.2/bin/fastlane:20:in `<top (required)>' from /usr/local/bin/fastlane:22:in `load' from /usr/local/bin/fastlane:22:in `<main>'Update: I tried to manually setup my project by adding a Fastfile and an Appfile, and then launching a lane which basically called produce, cert and sigh. It managed to create an appID in the Dev Center, but then produce gave me the same error (User doesn’t have enough permission for the following action: user_details_data) and stopped right there.
Update 2: I managed to have my lane working by having the owner of the iTunesConnect account invite me and set me a role in iTC. So it seems that the error is due to not having iTC permissions, disregarding the Dev Center permissions. Hope this helps for solving the issue for everyone !