Skip to content

Commit 756d674

Browse files
committed
- adds upgrade guidance for inherited odata methods
1 parent 854c10d commit 756d674

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/upgrade-to-v3.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,24 @@ The SDK now produces methods to include the count of items included in collectio
272272
273273
> Note: support for `filter`, `orderBy`, `top`, `skip`, `skipToken`, and `expand` was also added in the last 2.X versions, if you are upgrading from an older version you might want to consider updating the use of query options by these new methods.
274274
275+
## Support for inherited OData methods
276+
277+
The SDK now produces methods in child request builder types for the parents' OData methods (actions & functions). This change allows you to write more specific requests reducing the permissions required for your application.
278+
279+
Replacing
280+
281+
```Java
282+
graphClient.directoryObjects("userId").getMemberGroups(<...>).buildRequest().post();
283+
```
284+
285+
By
286+
287+
```Java
288+
graphClient.users("userId").getMemberGroups(<...>).buildRequest().post();
289+
```
290+
291+
Your application now only needs **User.Read.All** instead of **Directory.Read.All**.
292+
275293
### JavaDoc improvements and Nullability annotations
276294

277295
Multiple improvements to the JavaDoc and annotations (`@Nullable`, `@Nonnull`) have been added to improve the developement experience for Java and Kotlin developers.

0 commit comments

Comments
 (0)