I have a Teams approval flow running on a Power Automate Flow that sends access requests to spesific users from other users that is built based on this documentation: https://learn.microsoft.com/en-us/power-automate/teams/native-approvals-in-teams
However, I am moving towards Python-based infra and would like to convert the approval flow to run on Azure Durable functions instead. Microsoft has documentation about a similar use case but the actual implementation of the approval part is not done via the Teams approval app: https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=in-process%2Cnodejs-v3%2Cv1-model&pivots=python#human
I found out that Microsoft has released a Python SDK for msgraph lately that has an interface to create access packages (that I assume are the same thing that are used for Teams Approvals): https://github.com/microsoftgraph/msgraph-sdk-python/tree/main/msgraph/generated/identity_governance/entitlement_management
However, the terminology is a bit confusing to me and I am stuck trying to figure out which resources I need to create via the msgraph SDK in order to mimic the Teams Approval app behavior. The guide for Power Automate is just referring to “Approvals” but there are terms like “access package”, “access package assignment approval”, “access package item”, “assignment request”, “assignment policy”, etc. in the msgraph side. Would someone be able to explain how a simple approval flow would work using the entitlement management interface for msgraph the API?