如何在Google Directory API中设置用户管理器 [英] How to set user manager in Google Directory api
问题描述
我需要在Google Apps域中的每个用户上设置管理员字段.以前,我曾使用API来更新组织,电话地址等.但是,我看不到在哪里实际设置/更新用户管理器字段.
I have a requirement to set the manager field on each User within my Google Apps domain. Previously I've used the API to update organisations, phones addresses etc. However, I do not see where to actually set/update the user manager field.
我正在使用Java客户端库来更新用户帐户.
I'm using the Java client library to update the user accounts.
推荐答案
在创建或更新用户时,属性之一是关系",在该属性中,您可以添加与其他用户的关系以及关系的类型,在这种情况下,它将是经理"
When creating or updating a user, one of the properties is "relations", in that property you can add the relation with other users and the type of relation, in this case it would be "manager"
在这里您可以找到文档: https://developers.google .com/admin-sdk/directory/v1/reference/users
Here you can find the documentation: https://developers.google.com/admin-sdk/directory/v1/reference/users
希望有帮助.
这篇关于如何在Google Directory API中设置用户管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!