Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google provisioning api 用户字段的Google api模式_Google Provisioning Api - Fatal编程技术网

Google provisioning api 用户字段的Google api模式

Google provisioning api 用户字段的Google api模式,google-provisioning-api,Google Provisioning Api,我已经创建了一个软件,可以连接到Google apps电子邮件,并允许我用指定用户的信息创建签名。在谷歌应用程序中,域管理无法编辑更多“高级”字段,如公司地址、传真、电子邮件、标题、昵称等。。所以我使用了闪光面板,它为我提供了这种可能性。但为此,我需要字段api模式将其添加到我的配置中,以便将Google字段与我的合并字段连接起来。通过在我的配置文件中添加以下内容,我已设法使其适用于某些字段,如:姓名、公司名称、电子邮件地址、所有类型的电话、职务、部门、经理、传真号码: <string&g

我已经创建了一个软件,可以连接到Google apps电子邮件,并允许我用指定用户的信息创建签名。在谷歌应用程序中,域管理无法编辑更多“高级”字段,如公司地址、传真、电子邮件、标题、昵称等。。所以我使用了闪光面板,它为我提供了这种可能性。但为此,我需要字段api模式将其添加到我的配置中,以便将Google字段与我的合并字段连接起来。通过在我的配置文件中添加以下内容,我已设法使其适用于某些字段,如:姓名、公司名称、电子邮件地址、所有类型的电话、职务、部门、经理、传真号码:

<string>name=Name.FullName</string>
<string>company=Organizations[Rel:http://schemas.google.com/g/2005#work].Name</string>
<string>mail=PrimaryEmail.Address</string>
<string>mobile=Phonenumbers[Rel:http://schemas.google.com/g/2005#mobile].Value</string>
<string>title=Organizations[Rel:http://schemas.google.com/g/2005#work].Title</string>
<string>department=Organizations[Rel:http://schemas.google.com/g/2005#work].Department</string>
<string>managerGA=ContactEntry.Relations[Rel:manager].Value</string>
<string>phone number=Phonenumbers[Rel:http://schemas.google.com/g/2005#work_fax].Value</string>
<string>emlHome=Emails[Rel:http://schemas.google.com/g/2005#home].Address</string>
or
<string>homeEml=Emails[Home:true].Address</string>
name=name.FullName
公司=组织[Rel:http://schemas.google.com/g/2005#work].姓名
mail=PrimaryEmail.Address
手机=电话号码[Rel:http://schemas.google.com/g/2005#mobile].价值
标题=组织[Rel:http://schemas.google.com/g/2005#work].头衔
部门=组织[Rel:http://schemas.google.com/g/2005#work].部门
managerGA=ContactEntry.Rel:manager.关系值
电话号码=电话号码[Rel:http://schemas.google.com/g/2005#work_fax].价值
emlHome=电子邮件[Rel:http://schemas.google.com/g/2005#home].地址
或
homeEml=电子邮件[主页:true]。地址
在“=”之前的只是用于连接的名称,我需要的是“=”之后的名称

我搜索了谷歌文档,但没有找到一些字段的正确api模式格式,如:国家、城市、街道、昵称、照片、网站、URL、注释、组织单位、Aka和其他任何字段。此外,在Flash面板中还可以添加自定义字段,若我也可以将这些字段和签名模板编辑器中的合并字段连接起来,那个就太好了。有人能帮我找到正确的吗?我在哪里/如何找到


另外,例如,如果用户有两封家庭电子邮件,我知道如何检索第一封,但第二封的字符串应该是什么样子?

这是我顺便发现的一个老问题

该示例使用2013年12月弃用的Profiles API。请参阅迁移指南:

截至2016年,API是Admin SDK的用户资源。API文档如下:

您可以使用
User.primaryEmail
获取谷歌应用程序帐户的id/地址,您可以在
User.emails[]
数组中迭代获取任何其他电子邮件地址