Implement Azure Security for Developers
Anushika Agarwal
Cloud Data Engineer
Carry groceries in smaller trips
Lighter, faster, and safer



/v1.0/users : (default) It returns 100 items per page

Query Parameters
$top: number of items per page.
$skip: offset; start after the first N items

https://graph.microsoft.com/v1.0/groups?$top=2

One payload -> one response with all results
Benefits
Limit

Endpoint
https://graph.microsoft.com/v1.0/$batch$batch instead of specific resource like users

requestsrequests is an array (up to 20 items){ "requests":
[ {
"id": "1",
"method": "GET",
"url": "/me/memberOf"
},
{
"id": "2",
"method": "GET",
"url": "/me/planner/tasks"
} ]
}
Each request item needs
id: unique label to match responsemethod: (GET/POST/PATCH/DELETE)url: relative pathHeaders: Content-Type: application/json
{ "requests":
[ {
"id": "1",
"method": "GET",
"url": "/me/memberOf"
},
{
"id": "2",
"method": "GET",
"url": "/me/planner/tasks"
} ]
}
{
"responses": [
{ "id": "1",
"status": 200,
"body": { "value": [/* ... */]}},
{
"id": "2",
"status": 403,
"body": { "error": [/* ... */]}}
]
}
Each response item includes
id: matches the original request
status: HTTP status for that item
200: OK 403: Forbiddenheaders: (e.g., Content-Type)
body: data or error object
{
"responses": [
{ "id": "1",
"status": 200,
"body": { "value": [/* ... */]}},
{
"id": "2",
"status": 403,
"body": { "error": [/* ... */]}}
]
}
Implement Azure Security for Developers