Teams & SharePoint
List SharePoint sites or OneDrive accounts based on the type parameter
Type of sites to list
GET /api/ListSites?type=SharePointSiteUsage HTTP/1.1
Host:
Accept: */*
Successful response
[
{
"displayName": "text",
"createdDateTime": "2025-07-14T13:01:26.510Z",
"ownerPrincipalName": "text",
"lastActivityDate": "2025-07-14T13:01:26.510Z",
"fileCount": 1,
"storageUsedInGigabytes": 1,
"storageAllocatedInGigabytes": 1,
"reportRefreshDate": "2025-07-14T13:01:26.510Z",
"webUrl": "text",
"description": "text"
}
]
Add or remove a user as a member of a SharePoint site
Owner principal name
True to add, false to remove
Web URL of the site
Root web template
User principal name to add or remove
POST /api/ExecSetSharePointMember HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"groupId": "text",
"add": true,
"URL": "text",
"SharePointType": "text",
"user": "text"
}
Operation successful
No content
Add or remove a user as a site admin for SharePoint or add/remove permissions for OneDrive
Owner principal name
True to remove permission, false to add
Web URL of the site or OneDrive
User principal name to add or remove permissions for
User principal name to add or remove OneDrive access for
POST /api/ExecSharePointPerms HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"UPN": "text",
"RemovePermission": true,
"URL": "text",
"user": "text",
"onedriveAccessUser": "text"
}
Operation successful
No content
Create a new SharePoint site
Tenant ID
Name of the site
Description of the site
User principal name of the site owner
Template name
Site design template
POST /api/AddSite HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 128
{
"tenantFilter": "text",
"siteName": "text",
"siteDescription": "text",
"SiteOwner": "text",
"TemplateName": "team",
"siteDesign": "blank"
}
Site created successfully
No content
Create multiple SharePoint sites in bulk
Tenant ID
POST /api/AddSiteBulk HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 169
{
"tenantFilter": "text",
"bulkSites": [
{
"SiteName": "text",
"siteDescription": "text",
"siteOwner": "text",
"TemplateName": "text",
"siteDesign": "text",
"sensitivityLabel": "text"
}
]
}
Sites created successfully
No content
List Microsoft Teams
Type of Teams list
GET /api/ListTeams?type=list HTTP/1.1
Host:
Accept: */*
Successful response
[
{
"displayName": "text",
"description": "text",
"visibility": "text",
"mailNickname": "text",
"id": "text"
}
]
Create a new Microsoft Team
Tenant ID
Display name of the team
Description of the team
User principal name of the team owner
Team visibility
POST /api/AddTeam HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"tenantID": "text",
"displayName": "text",
"description": "text",
"owner": "text",
"visibility": "public"
}
Team created successfully
No content
List Microsoft Teams user activity
Type of Teams activity
GET /api/ListTeamsActivity?type=TeamsUserActivityUser HTTP/1.1
Host:
Accept: */*
Successful response
[
{
"UPN": "text",
"LastActive": "2025-07-14T13:01:26.510Z",
"MeetingCount": 1,
"CallCount": 1,
"TeamsChat": 1
}
]
List Microsoft Teams voice phone numbers
GET /api/ListTeamsVoice HTTP/1.1
Host:
Accept: */*
Successful response
[
{
"AssignedTo": "text",
"TelephoneNumber": "text",
"AssignmentStatus": "text",
"NumberType": "text",
"AcquiredCapabilities": "text",
"IsoCountryCode": "text",
"PlaceName": "text",
"ActivationState": "text",
"IsOperatorConnect": true,
"AcquisitionDate": "2025-07-14T13:01:26.510Z"
}
]
Assign a phone number to a user or set emergency location
Phone number to assign
Type of phone number
True if only setting emergency location
User principal name or location ID
POST /api/ExecTeamsVoicePhoneNumberAssignment HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"PhoneNumber": "text",
"PhoneNumberType": "text",
"locationOnly": true,
"input": "text"
}
Operation successful
No content
Unassign a phone number from a user
Phone number to unassign
User the phone number is assigned to
Type of phone number
POST /api/ExecRemoveTeamsVoicePhoneNumberAssignment HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"PhoneNumber": "text",
"AssignedTo": "text",
"PhoneNumberType": "text"
}
Operation successful
No content
List resources from Microsoft Graph API
Graph API endpoint
OData filter
Maximum number of results
Include count
Order by field
Fields to select
GET /api/ListGraphRequest?Endpoint=text HTTP/1.1
Host:
Accept: */*
Successful response
{
"Results": [
{}
]
}
Last updated
Was this helpful?