发送请求我尝试在Users.update请求中使用{externalIds:[{value:shaggynetwork,type:network}]} 。在Users.get中,响应是:I tried using {"externalIds":[{"value":"shaggynetwork","type":"network"}]} in "Users.update" request. And in the "Users.get", the response is:HTTP/1.1 200 OKContent-type: application/json; charset=UTF-8{ "externalIds": [ { "type": "network", "value": "shaggynetwork"}],步骤: 点击 https://developers.google.com/oauthplayground/ 。在步骤1中,授权API的左侧在空白处给出 https://www.googleapis.com/auth/admin.directory.user ,然后点击授权API。In the step 1, on the left side of "Authorize APIs" in the blank give https://www.googleapis.com/auth/admin.directory.user, then click on "Authorize APIs". 3.在第2步中,点击交换令牌代码3.In step 2, click on "exchange code for tokens" 在步骤3中,选择HTTP方法:PUT,给出请求URI值: https://www.googleapis.com/admin/directory/v1/users/userKey(giver userkey value)。In step 3, select HTTP method:PUT, give request URI value:https://www.googleapis.com/admin/directory/v1/users/userKey(giver userkey value).5.click on "enter request body", build json: {externalIds:[{value:shaggynetwork,type:网络}]}{"externalIds":[{"value":"shaggynetwork","type":"network"}]} 6.点击发送请求。在文档中,不清楚关于如何更新外部ID。In documentation, its not clear on how to update external id.如果您需要任何帮助,请告诉我。Let me know if you need any help on this. 这篇关于如何使用Java更新用户的externalId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-13 08:00