active directory - Microsoft Graph GetByIds support for query params ($select, $filter), or include additional properties in GetMemberGroups -


getmembergroups returns "id" properties of groups, afaik there no way include other additional properties (my guess it's because searches in kind of index rather traversing nodes in hierarchy, makes sense when needs transitive)

directoryobjects.getbyids comes handy once have ids getmembergroups, 1 returns default properties. if specify $filter example if know don't need groups prefix in displayname, or $select because know need properties, of these query parameters ignored. no error thrown, ignored, , objects returned parameters.

// works (max 2046 results) var groupids = await client.users[userid].getmembergroups(false).request().postasync()  // expand or include handy // if done separately in ad, @ least save roundtrip client.users[userid].getmembergroups(false).request().include("prop1,prop2").postasync()  // works nicely pagination, both select , filter ignored var res = await client.directoryobjects.getbyids(groupids.tolist(), new[] { "group" }) .request().select("id,displayname").filter("startswith(displayname,'prefix')").postasync() 

this scenario makes more sense when dealing large result sets (), , cannot cache values long, in these cases can waste more bandwith should.

is there other option achieve similar results? or hints on whether possible @ support this, similar on roadmap? maybe @dan kershaw knows more, if meanwhile i'm missing existing solution, nice use it.

this looks new feature request - filter , select on function or action in microsoft graph. don't have today. option available full set back, , client side filtering/selection.

can create user voice request new capability please

hope helps,


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -