Power Apps showing old Security Group IDs after migration

2026-11-20T07:26:42.8333333+00:00

We have identified old Security Group Object IDs in Power Apps sharing permissions. These security groups were migrated from on-premises to cloud, and their Object IDs appear to have changed after migration.

Currently, Power Apps only shows the old Group IDs below and does not resolve them to a group name:

  • 7c076e57-8d7c-47f4-ac25-30edc8e80afa
  • 211e4e51-7c0a-4243-a313-7108b557a6e8

We need assistance to determine:

  • Whether any historical records or backend data are available to identify the corresponding new Group IDs.
  • If there is a Microsoft-supported method to retrieve the original group details from these Object IDs.

This information is required to validate and restore application access after the security group migration.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-20T07:29:14.1766667+00:00

    If either Object ID is still a soft-deleted group, restore that group first because restoration retains its original Object ID, memberships, and application assignments and may make the existing Power Apps permission resolve again.^1^

    1. Check whether the original groups can be restored

    1. Open Microsoft Entra admin center → Entra ID → Groups → Deleted groups.
    2. Search for each old Object ID.
    3. If found, record its display name, deletion date, group type, and membership.
    4. Review the membership before restoring. Restoration can re-enable historical access for previous members.
    5. Select the group and choose Restore.
    6. Return to Power Apps → Apps → select the app → Share → Manage access and check whether the assignment now resolves to the restored group.

    Microsoft 365 groups and cloud security groups remain soft-deleted for 30 days. During that period, important properties—including Object ID, memberships, and application assignments—are maintained. Hard-deleted objects cannot be restored.^1^

    An administrator can also query a particular deleted Object ID through Microsoft Graph:

    GET https://graph.microsoft.com/v1.0/directory/deletedItems/{object-id}
    Authorization: Bearer {token}
    Accept: application/json
    

    A successful lookup returns 200 OK. For a deleted group, groupTypes: [] identifies a security group; do not rely on securityEnabled, because it has a known limitation for soft-deleted security groups.^2^

    This recovery path applies only where the group entered a supported soft-deleted state. A synchronized group’s deletion might not be recoverable this way, depending on how it was removed and the tenant scenario.

    2. If the old group is not recoverable

    There is no documented customer-accessible, guaranteed old-Object-ID-to-new-Object-ID mapping when a group was deleted and recreated. The replacement is a separate Entra object, so Power Apps continues to hold the original principal ID in its role assignment.

    Correlate the objects using retained evidence:

    • Entra audit logs: Open Entra ID → Monitoring & health → Audit logs. Search the migration period and filter for Delete group, Hard Delete group, and Add group. Inspect each event’s target resources for the stale Object ID. Audit logs record deletion events, but they do not inherently establish which newly created group replaced the deleted group.^1^
    • Archived audit/SIEM data: Check Microsoft Sentinel, Log Analytics, or another archive if Entra’s interactive retention period has expired. Microsoft recommends exporting audit logs for longer retention.^3^
    • Migration records: Compare display name, membership, mail/proxy addresses, source OU, and migration timestamps.
    • On-premises SID: For groups synchronized from AD, Microsoft Graph exposes the read-only onPremisesSecurityIdentifier. If both historical and current records contain the same SID, that provides a stronger correlation than display name alone.^4^
    • Entra Connect evidence: Retained connector-space entries, export history, synchronization logs, or migration reports might help. Synchronization history is not a guaranteed permanent mapping store.

    For future group migrations, Group Source of Authority conversion can convert an eligible synchronized group into a cloud-managed object rather than recreating it. This lets Entra Connect stop synchronizing that same group object and reduces identity-breaking replacements.^5^

    3. Replace the stale Power Apps permission

    After identifying the correct current group:

    1. Open Power Apps → Apps → select the app → Share → Manage access.
    2. Remove the unresolved old assignment.
    3. Enter the current Entra security group name and assign the required User or Co-owner permission.
    4. If Dataverse is used, assign the appropriate Dataverse security role as well.
    5. Save, publish, and test with a member of the replacement group.

    Power Apps sharing resolves users and security groups from Microsoft Entra ID. App sharing does not automatically grant access to dependent SharePoint sites, flows, gateways, connections, or other data sources; update those permissions separately.^6^

    If the UI cannot remove an unresolved principal, use the supported Power Apps administration cmdlets to obtain its role ID and delete that assignment:

    Add-PowerAppsAccount
    
    $roles = Get-AdminPowerAppRoleAssignment `
        -EnvironmentName "<environment-id>" -AppName "<app-id>"
    
    $roles | Format-List *
    
    Remove-AdminPowerAppRoleAssignment `
        -EnvironmentName "<environment-id>" `
        -AppName "<app-id>" -RoleId "<stale-role-id>"
    

    These cmdlets support reading and deleting canvas-app permissions; removal requires the environment ID, app ID, and assignment’s role ID.^7^^8^

    4. Escalation when tenant evidence is exhausted

    Open a Microsoft support request through the Power Platform admin center or Microsoft 365 admin center and provide:

    • Tenant, environment, and app IDs
    • Both unresolved group Object IDs
    • Approximate migration/deletion dates
    • App role-assignment output
    • Entra audit and synchronization logs
    • Suspected replacement groups and their Object IDs/SIDs

    Support can investigate tenant-specific service information that remains available, but recovery or an authoritative mapping cannot be guaranteed after the original objects and relevant logs have expired.


    References

    1. Recover from deletions
    2. Get deleted item (directory object)
    3. Recoverability best practices
    4. group resource type
    5. Embrace cloud-first posture: Convert Group Source of Authority to the cloud
    6. Share a canvas app with your organization
    7. PowerShell support for Power Apps and Power Automate
    8. Remove-AdminPowerAppRoleAssignment-Syntax
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Rongoli, Neelima (Contractor) 0 Reputation points
    2026-11-20T07:32:33.4366667+00:00

    Migration happened last month before 20th OCT.

    Was this answer helpful?

    0 comments No comments

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.