[英]Azure AD Graph API $filter not working with spaces
I want to filter groups based on displayName
. 我想根据displayName
过滤组。
This works: 这有效:
https://graph.windows.net/x.onmicrosoft.com/groups?$filter=displayName%20eq%20'Programmers'"&api-version=2013-11-08
This doesn't: 这不是:
https://graph.windows.net/x.onmicrosoft.com/groups?$filter=displayName%20eq%20'Web%20Developers'api-version=2013-11-08
Note the space in Web%20Developers
. 注意Web%20Developers
的空间。 Groups without a space work, groups with a space do not. 没有空格的小组,没有空格的小组没有。
What am I doing wrong? 我究竟做错了什么?
Thanks! 谢谢!
https://graph.windows.net/x.onmicrosoft.com/groups ?$filter=displayName%20eq%20'Web%20Developers'api-version=2013-11-08 https://graph.windows.net/x.onmicrosoft.com/groups?$ filter = displayName%20eq%20'Web%20Developers'api-version = 2013-11-08
Please check your request url carefully. 请仔细检查您的请求网址。 I think there is something wrong with it. 我认为这有问题。 We need to add '&' in the part 'Web%20Developers'api-version=2013-11-08
我们需要在'Web%20Developers'api-version=2013-11-08
部分添加'&'
I have tested on my local with api-version 1.6. 我已经使用api版本1.6在本地进行了测试。 The space in group name does not affect our result. 组名中的空格不会影响我们的结果。 See more detailed information with following screenshot: 通过以下屏幕截图查看更多详细信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.