在逻辑应用程序中使用获取用户配置文件 V2 获取用户的时区
Get a user's time zone with Get User Profile V2 in a Logic App
获取用户配置文件 (V2) 没有 return 时区作为默认数据的一部分 returned。
我也尝试 select mailboxSettings 或 timeZone(mailboxSettings 的一部分),但我没有取回数据。
mailboxSettings returned ErrorAccessDenied。
时区 returned:
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(timeZone)/$entity"
我认为您无法获取时区,因为操作 Get user profile (V2)
响应正文 GraphUser_V1
不包含时区 属性。您可以查看连接器详细信息:GraphUser_V1.
因此您只能添加它提供的路径过滤器,如 aboutMe、accountEnabled 等,它是 GraphUser_V1
中的路径 属性。
至于你想要的时区,我认为 Office 365 API 可以帮助你,你可以在逻辑应用程序中使用这个 API:Get user mailbox settings API.
获取用户配置文件 (V2) 没有 return 时区作为默认数据的一部分 returned。
我也尝试 select mailboxSettings 或 timeZone(mailboxSettings 的一部分),但我没有取回数据。
mailboxSettings returned ErrorAccessDenied。
时区 returned: "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(timeZone)/$entity"
我认为您无法获取时区,因为操作 Get user profile (V2)
响应正文 GraphUser_V1
不包含时区 属性。您可以查看连接器详细信息:GraphUser_V1.
因此您只能添加它提供的路径过滤器,如 aboutMe、accountEnabled 等,它是 GraphUser_V1
中的路径 属性。
至于你想要的时区,我认为 Office 365 API 可以帮助你,你可以在逻辑应用程序中使用这个 API:Get user mailbox settings API.