After an app transfer, I'm reached this point in this article, and I need to check if the Sign In with Apple ID users I've migrated have the "transferred" status.
This articles provides you with Swift code to check this status; does anyone know if there's a way to access this info using the Apple ID REST API, preferably with a curl
command? Or do I specifically need to check this info on my app?
Here's the swift code I'm talking about:
let request = ASAuthorizationAppleIDProvider().createRequest()
// Specify the current user identifier here.
request.user = "User Identifier"
let controller = ASAuthorizationController(authorizationRequests: [request])
controller.delegate = self
controller.presentationContextProvider = self
controller.performRequests()
Hi @virusys,
There is no REST API for this credential check. This is by design. Please use the Authentication Services framework to verify the credential status on-device to complete user migration after the app transfer.
If you only want the user information, the "Exchange identifiers" section of the documentation you mentioned explains the request:
POST /auth/usermigrationinfo HTTP/1.1
Host: appleid.apple.com
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {access_token}
transfer_sub={transfer_sub}&client_id={client_id}&client_secret={client_secret}
And its response:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Cache-Control: no-store
Pragma: no-cache
{
"sub":"820417.faa325acbc78e1be1668ba852d492d8a.0219",
"email": "ep9ks2tnph@privaterelay.appleid.com",
"is_private_email" : true
}
In the response above, the sub
is the user identifier; all values are associated only with the recipient team.
Cheers,
Paris X Pinkney | WWDR | DTS Engineer