A Node.js utility for configuring Azure Communication Services (ACS) Teams extension assignments through authenticated API calls.
This tool automates the process of assigning Teams extension permissions to users in Azure Communication Services using HMAC-SHA256 authenticated API requests.
- Node.js (v14 or higher)
- Azure Communication Services resource
- Azure AD app registration with appropriate permissions
- Teams tenant ID and user object ID
-
Clone this repository
-
Install dependencies:
npm install
-
Copy the environment configuration:
copy .env.example .env
-
Fill in your Azure configuration values in
.env
:ACS_API_KEY
: Your ACS resource API keyACS_ENDPOINT
: Your ACS resource endpoint URLTEAMS_TENANT_ID
: Your Azure AD tenant IDAPP_ID
: Your Azure AD app registration client IDUSER_OBJECT_ID
: The object ID of the user to assign permissionsIsLocal
: (optional) Set totrue
for local development/testing
Run the setup script:
npm start
The script will make an authenticated PUT request to assign Teams extension permissions for the specified user and app ID.