Conditionaly adding members to teams

%3CLINGO-SUB%20id%3D%22lingo-sub-1289010%22%20slang%3D%22en-US%22%3EConditionaly%20adding%20members%20to%20teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1289010%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20the%20following%20requirement%3A%20when%20user%20wants%20to%20join%20or%20leave%20a%20team%2C%20make%20a%20call%20to%20an%20external%20API%20and%20depending%20on%20the%20result%20either%20allow%20him%20to%20join%20(or%20leave)%2C%20or%20deny%20and%20display%20a%20message%20with%20the%20reason.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20implement%20something%20like%20this%20in%20teams%20client%20either%20using%20some%20API%20or%20a%20custom%20plugin%20application%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1289010%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1295564%22%20slang%3D%22en-US%22%3ERe%3A%20Conditionaly%20adding%20members%20to%20teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1295564%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F612794%22%20target%3D%22_blank%22%3E%40Taras1185%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3ECurrently%20there%20is%20graph%20API%20to%20add%20member%20in%20a%20teams.%20Please%20have%20a%20look%20into%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fteams-api-overview%3Fview%3Dgraph-rest-beta%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGraph%20API%20for%20teams.%3C%2FA%3E%3CBR%20%2F%3EUser%20can%20not%20be%20restricted%20to%20leave%20group%20as%20user%20can%20manually%20go%20to%20manage%20team%20and%20can%20click%20on%20leave%20team.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

 

We have the following requirement: when user wants to join or leave a team, make a call to an external API and depending on the result either allow him to join (or leave), or deny and display a message with the reason. 

 

Is it possible to implement something like this in teams client either using some API or a custom plugin application?

 

Thank you in advance.

1 Reply

@Taras1185 ,

Currently there is graph API to add member in a teams. Please have a look into Graph API for teams.
User can not be restricted to leave group as user can manually go to manage team and can click on leave team.