A fully managed end-to-end service for digitally signing code, documents, and applications. (formerly Trusted Signing)
This error is typically caused by authenticating with a personal Microsoft account instead of a Microsoft Entra work or school account for Artifact Signing/Trusted Signing.
What the error means:
-
Selected user account does not exist in tenant 'Microsoft Services'commonly appears when SignTool’s authentication flow is using a personal account. - Sending a guest invitation to that account does not fix the interactive signing flow.
- This is a known limitation, not usually a certificate-renewal problem.
What to do:
- Verify which account is being used in the browser sign-in prompt.
- If it is a personal Microsoft account, switch to a Microsoft Entra work/school account.
- If only a personal account is available, create or use a Microsoft Entra tenant and a member user in it.
- In Entra admin, create a new user as a Member.
- Use that Entra user for signing instead of the personal account.
- Assign the correct role to that Entra account.
- In the Trusted Signing/Artifact Signing resource, go to Access Control (IAM).
- Assign Artifact Signing Certificate Profile Signer to the Entra user that will sign.
- If interactive browser sign-in continues to fail, use service principal authentication instead.
- Create an app registration.
- Create a client secret.
- Set these Windows environment variables:
-
AZURE_CLIENT_ID -
AZURE_TENANT_ID -
AZURE_CLIENT_SECRET
-
- Reboot Windows so the variables are picked up.
- Then run SignTool again.
- If the signing command reaches SignTool but fails after authentication, check common Artifact Signing causes:
-
403: verify the subscription is registered, the signer role is assigned, the certificate profile is active, the account/profile names inmetadata.jsonare correct, and the identity validation status is Completed. -
0x80004005: if using service principal + certificate authentication, verify the required environment variables. -
0x8007000bfor MSIX: verify the manifest publisher matches the certificate subject.
-
Important note:
- The automatic renewal of the certificate is not the supported explanation in the provided guidance for this tenant error.
- The strongest match for this exact symptom is account type/tenant mismatch during Trusted Signing authentication.
References: