---
title: "/provisioning/getAccessTokenUsingAuthCode"
slug: "provisioninggetaccesstokenusingauthcode-1"
updated: 2025-06-17T20:37:14Z
published: 2025-06-17T20:37:19Z
canonical: "kb.connecttoteams.com/provisioninggetaccesstokenusingauthcode-1"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.connecttoteams.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /provisioning/getAccessTokenUsingAuthCode

Post/provisioning/getAccessTokenUsingAuthCode

Opeartion to retrieve the Access Token from the Microsoft Azure AD using the Authorization code flow. To use this operation - the input payload should have the valid Authorization Code obtained by sending a valid request to the OAUTH endpoint at Microsoft. Please refer to the detailed documentation here: [https://docs.microsoft.com/en-us/graph/auth/](https://docs.microsoft.com/en-us/graph/auth/)

SecurityOAuthFlowPassword Token URL/oauth/token
		

Body parameters<select class='api-response-data' aria-label='Media type'><option value='908fb9b1-5b60-40f9-8f86-ac3ee3bf75ae'>application/json</option>
</select>object  clientIDstring    
codestring    
redirectURIstring    
scopes Array of string   string    

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='98db08a1-0254-427e-be18-3c77cb96736c'>*/*</option>
</select>Expand Allobject  companyAdminboolean    
containsTeamsTenantAdminAPIboolean    
msalAuthenticationResultobject (MSALAuthenticationResult)  authenticationResultobject (AuthenticationResult)  accessTokenstring    
accessTokenTypestring    
expiresAfterinteger  (int64)    
expiresOninteger  (int64)    
expiresOnDatestring  (date-time)    
idTokenstring    
multipleResourceRefreshTokenboolean    
refreshTokenstring    
userInfoobject (UserInfo)  displayableIdstring    
identityProviderstring    
tenantIdstring    

resellerIdinteger  (int64)    
tenantIdstring    

officeUserTypestring    
organizationstring
