microsoft-graph-api - [MS 图] : Handling special characters in string search in a MS graph query

标签 microsoft-graph-api

我正在搜索具有显示名称的对象。如果 MS 图在搜索字符串中包含 & 或 #,则会抛出异常。有解决办法吗??

https://graph.microsoft.com/XXXXXXXXXXXXXXXXXXXXXXXXXXXX?$filter=displayName eq 'application # manager'

最佳答案

您需要对请求中的“#”进行 URL 编码。

例如下面的请求将帮助您查询“application # manager”,

https://graph.microsoft.com/v1.0/users?$filter=displayName eq 'application%20%23%20manager'

有关更多详细信息,请查看下面我的环境中的输出:-

enter image description here

关于microsoft-graph-api - [MS 图] : Handling special characters in string search in a MS graph query,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61937010/

相关文章:

outlook - Microsoft Azure Graph API 下载项附件内容

c# - 如何使用 Microsoft Graph API 获取用户所属的组名?

microsoft-graph-api - 通过objectids获取多个用户/组

azure - 使用电子邮件地址作为用户名邀请外部用户加入 Azure B2C

azure - 如何延长 Microsoft Graph 访问 token 过期时间?

email - MSFT图(Outlook邮件)是否有并发速率限制?

c# - Microsoft.Graph.GraphServiceClient Planner Buckets AddAsync 返回错误 "Write requests are only supported on contained entities"

oauth-2.0 - Azure AD B2C 错误 : The client Id specified in the request is not registered in tenant

graph - graph.windows.net 和 graph.microsoft.com 之间有什么区别?

c# - Microsoft Graph CSharp SDK 和 OneDrive for Business with a Service/Daemon application - Quota facet 返回 null