Universal Print (UP) Printer Registration Invalid Invalid Token, The Audient Invalid

%3CLINGO-SUB%20id%3D%22lingo-sub-1422966%22%20slang%3D%22en-US%22%3EUniversal%20Print%20(UP)%20Printer%20Registration%20Invalid%20Invalid%20Token%2C%20The%20Audient%20Invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1422966%22%20slang%3D%22en-US%22%3E%3CP%3EAccording%20to%20the%20document%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Funiversal-print%2Fhardware%2Funiversal-print-oem-printer-registration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPrinter%20Registration%3C%2FA%3E%26nbsp%3B%2C%20I%20obtained%20the%20Access%20Token%20in%20step%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Funiversal-print%2Fhardware%2Funiversal-print-oem-printer-registration%23121322-retrieving-the-user-token%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3E1.2.1.3.2.2%3C%2FSTRONG%3E%3C%2FA%3E%20%3CSTRONG%3ERetrieving%20the%20user%20token%3C%2FSTRONG%3E.%3CBR%20%2F%3EThis%20token%20can%20be%20used%20in%20the%20required%20authorization%20header%20(described%20in%20section%201.2.1.1.2)%20when%20sending%20a%20request%20to%20register%20a%20printer%20with%20Universal%20Print.%3CBR%20%2F%3EBut%20when%20I%20send%20the%20request%20to%20api%20%3CA%20href%3D%22https%3A%2F%2Fregister.print.microsoft.com%2Fapi%2Fv1.0%2Fregister%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fregister.print.microsoft.com%2Fapi%2Fv1.0%2Fregister%3C%2FA%3E%3CBR%20%2F%3E%2C%20an%20error%20code%20returned%20as%20%3CSTRONG%3E401%20Unauthorized%3C%2FSTRONG%3E%20with%20description%20Bearer%20error%20%3D%20%22i%3CSTRONG%3Envalid_token%3C%2FSTRONG%3E%22%2C%20error_description%20%3D%20%22%3CSTRONG%3EThe%20audience%20is%20invalid%3C%2FSTRONG%3E%22%3CBR%20%2F%3ELet%20me%20know%20what%20to%20do%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1424736%22%20slang%3D%22en-US%22%3ERe%3A%20Universal%20Print%20(UP)%20Printer%20Registration%20Invalid%20Invalid%20Token%2C%20The%20Audient%20Invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1424736%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F621893%22%20target%3D%22_blank%22%3E%40hungnq39%3C%2FA%3E%2C%20please%20message%20me%20directly.%26nbsp%3B%20There%20are%20a%20few%20things%20to%20discuss%20through%20which%20are%20difficult%20to%20do%20in%20this%20format.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3EJimmy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1426102%22%20slang%3D%22en-US%22%3ERe%3A%20Universal%20Print%20(UP)%20Printer%20Registration%20Invalid%20Invalid%20Token%2C%20The%20Audient%20Invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426102%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F70523%22%20target%3D%22_blank%22%3E%40Jimmy%20Wu%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EI%20sent%20you%20a%20message%2C%20read%20it%20and%20reply%20to%20me.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3EHungNQ39%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

According to the document Printer Registration , I obtained the Access Token in step 1.2.1.3.2.2 Retrieving the user token.
This token can be used in the required authorization header (described in section 1.2.1.1.2) when sending a request to register a printer with Universal Print.
But when I send the request to api https://register.print.microsoft.com/api/v1.0/register
, an error code returned as 401 Unauthorized with description Bearer error = "invalid_token", error_description = "The audience is invalid"
Let me know what to do?

2 Replies

@hungnq39, please message me directly.  There are a few things to discuss through which are difficult to do in this format.

 

Thanks,

Jimmy

@Jimmy_Wu 
I sent you a message, read it and reply to me.

Thanks,
HungNQ39