Share via

installing application B through already installed application A

abbas izadipour 210 Reputation points
2024-07-22T04:39:38.74+00:00

I made a Microsoft bot application. In this context, let's call this application A. At this point, I am asked to add the following feature to my application: the ability to install another application to an existing team. This means that when user X installs application A, user X should be able to use an API implemented in application A to install application B to an existing team within a known tenant. I need to know if this is possible, and if it is, what type of authorization we need to do this. Do I need to authorize application A, or do I need to have application A use delegated authorization?"

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

Anonymous
2024-07-22T07:05:04.4466667+00:00

Hi @abbas izadipour

This can be done, as shown in the figure below are the permissions you need to grant to application A, both delegate permissions and application permissions are supported.

User's image

When you use delegate permissions, you need to log in interactively, using auth code flow.

When using the application permissions, use the client credential flow.

Please see the link for details such as the specific request path:

https://learn.microsoft.com/en-us/graph/api/team-post-installedapps?view=graph-rest-1.0&tabs=http

Hope this helps.

If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.