【发布时间】:2017-12-15 23:30:07
【问题描述】:
当我调用 _activeDirectoryClient.Groups.AddGroupAsync(group) 时,组的显示名称大于 120 个字符,它会引发以下异常:
Microsoft.Data.OData.ODataErrorException:不支持或无效的查询 为资源的属性“displayName”指定的过滤器子句 '团体'。 ---> System.Data.Services.Client.DataServiceQueryException: 处理此请求时发生错误。 ---> System.Data.Services.Client.DataServiceClientException: {"odata.error":{"code":"Request_UnsupportedQuery","message":{"lang":"en","value":"不支持 或为属性“displayName”指定的查询过滤器子句无效 资源'组'。"}}} 在 System.Data.Services.Client.BaseAsyncResult.EndExecute[T](对象 源,字符串方法,IAsyncResult asyncResult)在 System.Data.Services.Client.QueryResult.EndExecuteQuery[TElement](对象 源,String 方法,IAsyncResult asyncResult)
PS:我在Microsoft Graph github 中问过这个问题。但是,我被告知要在此处发布。
【问题讨论】:
标签: c# azure-ad-graph-api