Automating Azure AD with Power Automate
Azure Active Directory (Azure AD) is Microsoft’s cloud-based identity service. If your organization uses Azure AD, Power Automate can be a valuable tool for automating routine Azure AD administrative tasks. This can be particularly relevant for managing Tallyfy members and their access, especially in organizations using Azure AD for Single Sign-On (SSO) with Tallyfy.
Automating Azure AD tasks with Power Automate can improve efficiency for operations related to Tallyfy user management, such as onboarding and offboarding users who need Tallyfy access, managing group memberships that grant Tallyfy roles, and generating compliance reports related to Tallyfy users.
Relevance to Tallyfy:
- Managing Tallyfy members: If your Tallyfy member list is synchronized with or managed via Azure AD groups, Power Automate can help automate adding or removing users from these groups. This ensures Tallyfy access aligns with your central identity management.
- Automating Tallyfy access via SSO: If Tallyfy SSO is linked to specific Azure AD security groups, Power Automate can manage membership in these groups, thereby controlling who can access Tallyfy.
- Reporting for Tallyfy compliance: Generate reports on users who have access to Tallyfy (via Azure AD group membership) for regular access reviews, helping maintain security and compliance for your Tallyfy organization.
Power Automate offers connectors and actions for interacting with Azure AD relevant to Tallyfy:
- Azure AD Connector: This is the primary connector for user and group operations that can impact Tallyfy access. For general information on connectors, see understanding Power Automate basics.
Get user profile (V2)
andGet manager (V2)
: Useful for retrieving user details which could inform Tallyfy task assignments.Create user
,Update user
,Delete user
: For automating user lifecycle management that might affect Tallyfy member status.Add user to group
,Remove user from group
: Directly manage membership in Azure AD security groups that control access to Tallyfy or specific Tallyfy-related resources.List group members
,List users
: Essential for reporting on Tallyfy user access.
- Office 365 Groups Connector: Can be relevant if Microsoft 365 Groups are used to manage teams that also require specific Tallyfy access.
- HTTP with Microsoft Graph API (Advanced): For scenarios not covered by standard connectors (e.g., accessing custom user attributes relevant to Tallyfy roles), you can use Power Automate’s HTTP action to call the Microsoft Graph API directly. This is an advanced technique detailed further in connecting Power Automate to external data.
Scenario: Your organization wants to automatically add new Tallyfy members to a specific “Tallyfy Users” Azure AD security group if their job title (perhaps captured during an HR onboarding process that feeds Tallyfy) indicates they belong in a certain department like “Sales.”
This example assumes a mechanism exists to trigger the flow when a new Tallyfy member is fully activated. This could be a Tallyfy webhook (if available for new member events), a Power Automate flow triggered by an HR system, or for this demonstration, a manual trigger.
-
Trigger: Manually trigger a flow (for demonstration).
- Add input fields:
User Email
(Text),Job Title
(Text). (In a real scenario, this data might come from Tallyfy or an HR system).
- Add input fields:
-
Action: Azure AD - “Get user (V2)”.
- User UPN or ID: Use the
User Email
dynamic content from the trigger. This action fetches the user’s full Azure AD profile, including their Object ID or UPN needed for group management.
- User UPN or ID: Use the
-
Control: “Condition”.
- Refer to using conditional logic for details on conditions.
- Value 1: Dynamic content
Job Title
from the trigger. - Operator:
contains
(oris equal to
if titles are exact). - Value 2:
Sales
.
-
IF YES Branch: Action: Azure AD - “Add user to group”.
- Group Id: The Object ID of your “Tallyfy Sales Users” Azure AD security group. (You can find this ID in the Azure portal by navigating to Azure Active Directory > Groups, selecting your group, and copying its Object ID).
- User Id: Use the
Id
(Object ID) dynamic content from the “Get user (V2)” action output.
-
Save and test the flow. Refer to managing and monitoring flows for testing guidance.
Scenario: Generate a monthly CSV report of all users in an Azure AD group that grants Tallyfy access (e.g., “Tallyfy General Access”) and email it for review.
-
Trigger: Recurrence.
- Set the Interval to
1
and Frequency toMonth
. - Configure a specific day and time.
- Set the Interval to
-
Action: Azure AD - “List group members”.
- Group Id: Provide the Object ID of your “Tallyfy General Access” Azure AD group.
-
Action: “Create CSV table” (Data Operation).
- For more on data operations, see working with data operations and variables.
- From: Use the
value
dynamic content from the “List group members” action (this is an array of users). - Columns: Select
Custom
.- Header 1:
UserPrincipalName
, Value 1: SelectUser Principal Name
dynamic content from the “List group members” items. - Header 2:
DisplayName
, Value 2: SelectDisplay Name
dynamic content.
- Header 1:
-
Action: “Send an email (V2)” (Outlook 365).
- To: Administrator’s email address.
- Subject:
Monthly Tallyfy User Access Review Report
. - Body:
Please find attached the monthly report of users in the 'Tallyfy General Access' group.
- Click Show advanced options.
- Attachments Name - 1:
TallyfyUserReport.csv
. - Attachments Content - 1: Use the
Output
dynamic content from the “Create CSV table” action.
-
Save and test your flow.
For tasks beyond the standard Azure AD connector, like accessing specific user properties to determine Tallyfy roles, use the generic HTTP action with the Microsoft Graph API. This advanced method is covered in more detail in connecting Power Automate to external data.
This involves:
- App Registration in Azure AD: Create an app registration with appropriate API permissions for accessing data relevant to Tallyfy users.
- Authentication Details: Securely manage credentials within your HTTP action.
- HTTP Action Configuration: Configure the method, URI, headers, and body for the Graph API call.
- Parse JSON Action: Convert the JSON response from Graph API into usable dynamic content for your Tallyfy-related flow logic.
This offers flexibility but requires understanding Azure AD app registrations and Graph API structures.
- Permissions: Use the principle of least privilege for API permissions and service accounts impacting Tallyfy access.
- Use group IDs: Always use the immutable Group Object ID for Azure AD groups in flows, not display names.
- Testing: Test flows with non-administrator permissions if they are intended for delegated use for Tallyfy user management.
- User lifecycle: Leverage Azure AD user lifecycle events to automate Tallyfy member provisioning or de-provisioning, especially with SSO.
Authentication > Integrate Azure AD
Power Automate > Connect Tallyfy to Power Automate
Power Automate > Managing and monitoring Power Automate flows
- 2025 Tallyfy, Inc.
- Privacy Policy
- Terms of Use
- Report Issue
- Trademarks