Body
Who can use this feature?
- Available in TDAdmin and the Ticketing application admin UI
- License Requirement: Enterprise
- Application Access: User must have access to Work Management and the specific Ticketing application, or TDAdmin
- Administrative Access:
- Ticketing Application Admins can configure Web Service Auth Accounts from the Ticketing Application Admin interface
- Global Administrators can configure Web Service Auth Accounts in TDAdmin
In this article, we’ll cover:
Overview
Workflow Web Services support OAuth 2.0 authentication, so you can call any external system that supports OAuth 2.0 and incorporate those calls into your workflows. TeamDynamix includes out-of-the-box support for Google OAuth 2.0 and Microsoft OAuth 2.0, and you can also configure it for other OAuth 2.0-enabled services using Generic OAuth 2.0.
This article covers the OAuth 2.0 concepts and fields that apply across all three account types. For the base steps to create any Web Service Auth Account, see Creating a Web Service Auth Account. For full worked examples, see Creating a Workflow Web Service Method that Uses Google OAuth 2.0 or Creating a Workflow Web Service Method that Uses Microsoft OAuth 2.0.
Note: TeamDynamix only supports OAuth 2.0 for services whose authorization servers provide refresh tokens. Without a refresh token, TeamDynamix has no way to automatically refresh an expired access token after the auth account has been configured.
Registering an Application
Before you can create an OAuth 2.0 Web Service Auth Account, you need to register an application with the service you're connecting to. This process differs for each service, but it typically involves providing basic information—an application name, a logo, and so on—and authorizing a redirect URI for TeamDynamix.
When prompted for a redirect URI, provide:
[TeamDynamix Base URL]/TDAdmin/OAuth/Callback.
For example, if your TeamDynamix base URL is https://abuniversity.teamdynamix.com, then the redirect URI you register is:
https://abuniversity.teamdynamix.com/TDAdmin/OAuth/Callback
Some services also require that you authorize JavaScript origins. In that case, provide your TeamDynamix base URL on its own — https://abuniversity.teamdynamix.com from the previous example.
Make note of the Client ID and Client Secret the service provides when you register — you'll need both to create the Auth Account.
For registration steps specific to Google or Microsoft, see the worked example for that service.
Creating the Auth Account
Follow the general steps in Creating a Web Service Auth Account, and select Generic OAuth 2.0, Google OAuth 2.0, or Microsoft OAuth 2.0 as the Account Type.
Choosing Google or Microsoft requires less information to configure, since several fields — covered below — are pre-populated and don't need to be entered manually.

OAuth Account Type Fields
Authorization Endpoint
This is the URI for the endpoint on the authorization server used to obtain authorization. You don’t need it for Google or Microsoft account types, since TeamDynamix pre-populates this value. For any other service, enter the endpoint provided by that service.
For reference, Google's OAuth 2.0 authorization endpoint is:
https://accounts.google.com/o/oauth2/v2/auth
TeamDynamix automatically appends the query string parameters required by the OAuth 2.0 specification when you go to generate an access token, including:
access_type
client_id
origin
prompt
redirect_uri
response_type
scope
state
If your authorization server requires additional parameters, add them to the end of your authorization endpoint. For example, for Google's optional login_hint parameter, use: https://accounts.google.com/o/oauth2/v2/auth?login_hint=myemail@gmail.com
Use an ampersand character (&) to delimit multiple parameters. For example, to add Google's include_granted_scopes: https://accounts.google.com/o/oauth2/v2/auth?login_hint=myemail@gmail.com&include_granted_scopes=true
Token Endpoint
This is the URI for the endpoint used to exchange an authorization code for an access token. This endpoint should also be provided to you by the service against which you are authenticating. This is not needed for Google or Microsoft account types since TeamDynamix pre-populates this value. For reference, Google's Token Endpoint is: https://www.googleapis.com/oauth2/v4/token
Client ID
This is the string representing the public registration information provided by your client application. You should receive a Client ID when you register your application.
Client Secret
This is the string representing the confidential secret provided by your client application. Depending on your application, you will typically receive a Client Secret alongside your Client ID when registering your application. If your application provided you with a client secret, you must provide it here.
Scope
This specifies the scope of the access request, expressed as a list of space-delimited, case-sensitive strings defined by the authorization server. You will need to determine which permissions your web service call requires.
For example, a Web Service Method that writes to a Google Sheet requires the scope: https://www.googleapis.com/auth/spreadsheets. See the service's own documentation for its full list of available scopes.
Note: For Microsoft accounts, offline_access is automatically appended to the scope, as that is required by TeamDynamix.
Generating an Access Token
Once you've filled in the fields above, you're ready to generate an access token. Generate the token by logging in with a user who has permission to perform the web service method actions you intend to call — this ensures your calls will succeed.
Click the Generate Tokens button beside the Access Token field. You’ll be taken to the authorization endpoint where you'll enter your credentials in the external system and authorize the requested scopes. Once authorized, you’ll see a confirmation that the token was generated successfully. Then check the Active checkbox and click Save.

Using an OAuth 2.0 Auth Account in a Web Service Method
After you configure your OAuth 2.0 Auth Account, select it as the Authentication account when creating a Web Service Method. See Creating a Web Service Method. Use the Test Request button to confirm the call succeeds before adding it to a workflow.
Refreshing Access Tokens
An access token is valid only for a set period—usually an hour—before it expires. This is why the authorization server also supplies a refresh token alongside the access token. TeamDynamix uses the refresh token to generate a new access token automatically when the old one expires. No additional configuration is needed.
Revoking OAuth Access
OAuth access can be revoked outside TeamDynamix. For example, if you explicitly revoke access to the service you're using. If this happens, all web service calls using that Auth Account fail with a 401 (unauthorized) status from that point forward. Failed calls, including those used in Workflow Web Service steps, are recorded as unsuccessful and appear in the Workflow Web Service Logs in TDAdmin. To restore functionality, reconfigure the Auth Account and generate new access and refresh tokens.