The teams user app add command uses a beta endpoint that is now in v1.0.
|
const endpoint: string = `${this.resource}/beta`; |
|
|
|
const requestOptions: any = { |
|
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps`, |
|
headers: { |
|
'content-type': 'application/json;odata=nometadata', |
|
'accept': 'application/json;odata.metadata=none' |
|
}, |
|
responseType: 'json', |
|
data: { |
|
'[email protected]': `${endpoint}/appCatalogs/teamsApps/${args.options.appId}` |
|
} |
|
}; |
Install app for user: https://docs.microsoft.com/en-us/graph/api/userteamwork-post-installedapps?view=graph-rest-1.0&tabs=http
The
teams user app addcommand uses abetaendpoint that is now inv1.0.cli-microsoft365/src/m365/teams/commands/user/user-app-add.ts
Lines 28 to 40 in b7c27c8
Install app for user: https://docs.microsoft.com/en-us/graph/api/userteamwork-post-installedapps?view=graph-rest-1.0&tabs=http