Using Apple Business Apple IDs with code signing

Recently at work

create apple id “cannot find this person”

$ xcrun notarytool store-credentials "Whimsical Development" --apple-id "name@company.com" --team-id "2N6497CB83" --verbose
[18:23:07.326Z] Debug [MAIN] Running notarytool version: 1.0.0 (32.0.1), date: 2024-02-29T18:23:07Z, command: /Applications/Xcode-15.2.0.app/Contents/Developer/usr/bin/notarytool store-credentials Whimsical Development --apple-id name@company.com --team-id 2N6497CB83 --verbose

This process stores your credentials securely in the Keychain. You reference these credentials later using a profile name.

App-specific password for name@company.com:
Validating your credentials...
[18:23:21.756Z] Info [API] Initialized Notary API with base URL: https://appstoreconnect.apple.com/notary/v2/
[18:23:21.756Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/test?, Parameters: [:], Custom Headers: private<Dictionary<String, String>>
[18:23:21.757Z] Debug [AUTHENTICATION] Delaying current request to refresh app-specific password token.
[18:23:21.757Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/asp?, Parameters: [:], Custom Headers: private<Dictionary<String, String>>
[18:23:21.757Z] Debug [AUTHENTICATION] Authenticating request to '/notary/v2/asp' with Basic Auth. Username: name@company.com, Password: private<String>, Team ID: 2N6497CB83
[18:23:21.758Z] Debug [TASKMANAGER] Starting Task Manager loop to wait for asynchronous HTTP calls.
[18:23:22.825Z] Debug [API] Received response status code: 401, message: unauthorized, URL: https://appstoreconnect.apple.com/notary/v2/asp?, Correlation Key: U7UUHDJOSFM5N7DWNJZMTALNYE
[18:23:22.826Z] Error [TASKMANAGER] Completed Task with ID 2 has encountered an error.
[18:23:22.826Z] Debug [TASKMANAGER] Ending Task Manager loop.
Error: HTTP status code: 401. Unable to authenticate. The application is not allowed for primary authentication. Ensure that all authentication arguments are correct.