SOLVED

Microsoft Teams apps

%3CLINGO-SUB%20id%3D%22lingo-sub-1512888%22%20slang%3D%22en-US%22%3EMicrosoft%20Teams%20apps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512888%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20have%20an%20issue%20I%20am%20hoping%20can%20be%20resolved%20but%20not%20sure%20if%20Microsoft%20teams%20has%20the%20capability.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20my%20place%20of%20work%2C%20it%20is%20required%20that%20staff%20complete%20or%20are%20in%20compliance%20with%26nbsp%3Btrainings%2Ftests%20before%20they%20are%20able%20to%20work%20certain%20shifts.%20I%20am%20wondering%20first%20if%20apps%20%22communicate%22%20with%20one%20another%2C%20such%20as%20Microsoft%20shifts%20and%20Microsoft%20forms%3F%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20so%2C%20if%20there%20a%20way%20to%26nbsp%3Brestrict%20staff%26nbsp%3Bfrom%20requesting%20shifts%20on%20Microsoft%20shifts%20until%20the%20assignment%20is%20completed%20on%20Microsoft%20forms%3F%20I%20realize%20that%20I%20have%20to%20give%20approval%20to%20the%20request%20and%20could%20also%20check%20forms%20to%20see%20if%20they%20are%20in%20compliance%20before%20approving%20but%20didn't%20know%20if%20there%20was%20a%20way%20to%20automate%20this%3F%3C%2FP%3E%3CP%3EFor%20Microsoft%20forms%2C%20is%20it%20possible%20to%20mandate%20an%20assignment%2Ftest%3F%20I%20saw%20a%20deadline%20option%20where%20after%20a%20certain%20date%20staff%20cannot%20submit%20the%20form%2C%20but%20was%20wondering%20if%20there%20is%20a%20way%20to%20restrict%20their%20utilization%20of%20the%20app%20until%20they%20complete%20the%20assignment%3F%20Or%20at%20the%20very%20least%20for%20Microsoft%20forms%20to%26nbsp%3Bsend%20out%20automatic%20reminders%20that%20they%20need%20to%20complete%20the%20assignment%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%20would%20be%20helpful.%20Thank%20you%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1512888%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1517431%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20apps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1517431%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F724078%22%20target%3D%22_blank%22%3E%40KRife730%3C%2FA%3E%26nbsp%3BI%20don't%20see%20this%20much%20as%20a%20Teams%20capability%2C%20but%20more%20as%20a%20combination%20of%20multiple%20technologies.%20There%20are%20multiple%20approaches%20possible%20depending%20on%20your%20specific%20setup%2C%20I'll%20give%20some%20options%20with%20my%20own%20assumptions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EOption%201%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EAssumption%3A%20Shifts%20are%20linked%20to%20a%20Teams%20team%2C%20users%20can%20only%20be%20part%20of%20this%20team%20when%20they%20completed%20the%20form%3C%2FEM%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EYou%20create%20the%20Microsoft%20Forms%20(or%20Pro)%20form%3C%2FLI%3E%0A%3CLI%3EYou%20create%20a%20Power%20Automate%20flow%2FLogic%20App%20with%20trigger%20%22Forms%20-%26gt%3B%20When%20a%20new%20response%20is%20received%22.%3C%2FLI%3E%0A%3CLI%3EPopulate%20the%20flow%20to%20extract%20the%20user%20from%20the%20response%2C%20and%20add%20it%20to%20the%20Teams%20team%3C%2FLI%3E%0A%3CLI%3EThe%20user%20can%20start%20scheduling%20shifts.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EOption%202%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EAssumption%3A%20Shifts%20are%20linked%20to%20a%20Teams%20team%2C%20and%20users%20are%20already%20in%20the%20team.%20Users%20ALWAYS%20need%20to%20complete%20the%20Form%20fir%3C%2FEM%3E%3CEM%3Est%2C%20there%20is%20no%20difference%20for%20shifts%20in%20one%20team%20vs%20shifts%20in%20another%20team.%3C%2FEM%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EYou%20create%20the%20Microsoft%20Forms%20(or%20Pro)%20form%3C%2FLI%3E%0A%3CLI%3EYou%20create%20two%20App%20Permission%20Policies%20in%20Teams%20Admin%20Center.%20One%20containing%20the%20Shifts%20app%20and%20another%20one%20that%20doesn't%20contain%20it.%3C%2FLI%3E%0A%3CLI%3EYou%20assign%20the%20%22no%20Shifts%20app%22%20policy%20to%20all%20your%20users%3C%2FLI%3E%0A%3CLI%3EYou%20create%20a%20Power%20Automate%20flow%2FLogic%20App%20with%20trigger%20%22Forms%20-%26gt%3B%20When%20a%20new%20response%20is%20received%22.%3C%2FLI%3E%0A%3CLI%3EPopulate%20the%20flow%20to%20extract%20the%20user%20from%20the%20response%2C%20and%20trigger%20an%20Azure%20Automation%20runbook%20(maybe%20Azure%20Function%3F)%3C%2FLI%3E%0A%3CLI%3EYou%20create%20this%20Azure%20Automation%20runbook%2FAzure%20Function%20that%20runs%20the%20Teams%20Powershell%20module%20to%20assign%20the%20%22with%20Shifts%20app%22%20policy%20to%20this%20specific%20user.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EI%20hope%20this%20sets%20you%20an%20your%20way%20to%20find%20a%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Hello,

I have an issue I am hoping can be resolved but not sure if Microsoft teams has the capability.

 

For my place of work, it is required that staff complete or are in compliance with trainings/tests before they are able to work certain shifts. I am wondering first if apps "communicate" with one another, such as Microsoft shifts and Microsoft forms? 

If so, if there a way to restrict staff from requesting shifts on Microsoft shifts until the assignment is completed on Microsoft forms? I realize that I have to give approval to the request and could also check forms to see if they are in compliance before approving but didn't know if there was a way to automate this?

For Microsoft forms, is it possible to mandate an assignment/test? I saw a deadline option where after a certain date staff cannot submit the form, but was wondering if there is a way to restrict their utilization of the app until they complete the assignment? Or at the very least for Microsoft forms to send out automatic reminders that they need to complete the assignment?

 

Any suggestions would be helpful. Thank you,

1 Reply
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution

@KRife730 I don't see this much as a Teams capability, but more as a combination of multiple technologies. There are multiple approaches possible depending on your specific setup, I'll give some options with my own assumptions.

 

Option 1

Assumption: Shifts are linked to a Teams team, users can only be part of this team when they completed the form

  • You create the Microsoft Forms (or Pro) form
  • You create a Power Automate flow/Logic App with trigger "Forms -> When a new response is received".
  • Populate the flow to extract the user from the response, and add it to the Teams team
  • The user can start scheduling shifts.

Option 2

Assumption: Shifts are linked to a Teams team, and users are already in the team. Users ALWAYS need to complete the Form first, there is no difference for shifts in one team vs shifts in another team.

  • You create the Microsoft Forms (or Pro) form
  • You create two App Permission Policies in Teams Admin Center. One containing the Shifts app and another one that doesn't contain it.
  • You assign the "no Shifts app" policy to all your users
  • You create a Power Automate flow/Logic App with trigger "Forms -> When a new response is received".
  • Populate the flow to extract the user from the response, and trigger an Azure Automation runbook (maybe Azure Function?)
  • You create this Azure Automation runbook/Azure Function that runs the Teams Powershell module to assign the "with Shifts app" policy to this specific user.

I hope this sets you an your way to find a solution.