草庐IT

CustomSchemas

全部标签

Google Directory API 添加自定义架构/根据 google API 将其更新给用户(在进行中)

我正在尝试将CustomSchema上传到GSuite中一家公司的所有用户。此自定义架构包含他们的Github用户名,我使用githubAPI将其提取。问题是,运行代码后,并没有添加Gsuite中的账号。相关代码(已建立使用管理员身份验证的GSuite连接,map包含所有用户条目。如果您还需要更多代码,我可以为您提供-只是尽量保持简单):for_,u:=rangeallUsers.Users{ifu.CustomSchemas!=nil{log.Printf("%v",string(u.CustomSchemas["User_Names"]))}else{u.CustomSchemas