Only Power BI Developer? Remove the Single-Person Risk

TOOLS Published 11 mins read By Leon Wei
Only Power BI Developer? Remove the Single-Person Risk cover image

Quick summary

Summarize this blog with AI

When one person owns everything in Power BI, five things depend on their account: the semantic model owner, who is the only person who can change scheduled refresh and credentials; the stored data source credentials; the gateway admin role and its recovery key; the owner role on each connection; and the refresh failure emails, which by default go only to the owner. Fix them in this order. Add a second workspace Admin through a security group, add co-admins to the gateway, store the recovery key in a password vault, add a second Owner to every connection, move models off personal credentials, and send failure emails to a shared mailbox. Then test it by having the backup person take over one model and refresh it.

Power BI was not available for this guide, so nothing here was run against a tenant. Setting names, roles and API behavior were checked against current Microsoft Learn documentation in November 2026. The PowerShell inventory below has not been run. Its filtering logic was checked in Python against the sample API responses that Microsoft publishes.

What actually breaks when the account goes away

Microsoft's documentation on taking over Fabric items says that when a user leaves the organization, or doesn't sign in for more than 90 days, items they own might stop working correctly. For Power BI refresh, the failure usually plays out like this:

  1. Credentials stop working. Credentials the owner entered under their own account, such as OAuth sign-ins to SharePoint, Azure SQL or Dataverse, fail once that account is disabled. A password change can break Basic or Windows credentials. Microsoft notes that for some authentication methods you must re-enter a changed password in Data source credentials.
  2. Refresh is switched off. Power BI deactivates a refresh schedule after four consecutive failures, or straight away when it detects an error that needs a configuration change, such as invalid or expired credentials. You can't change the threshold.
  3. The warning goes to the absent person. Failure emails go to the semantic model owner by default. If nobody else is on the list, nobody notices until a manager asks why the numbers are stale.
  4. Nobody can see what to fix. In Manage connections and gateways, you see only the connections you have access to. That holds even for a tenant administrator with the Tenant administration toggle on. If the leaver was the only Owner of a connection, nobody else can update its credentials.
  5. The gateway can't be moved. Moving, restoring or taking over a gateway needs its recovery key. Microsoft can't retrieve the key, and a gateway cluster that has been removed can't be restored.

Disabling a user in Microsoft Entra ID doesn't remove their workspace access records. That keeps access restorable, but a disabled user can't use it, so refresh still fails.

Run this inventory in 30 minutes

Do this with the developer present, listing every place their name appears. Start in the service:

  • Each workspace: select Manage access and note who holds Admin. A workspace whose only Admin is one person is the first fix.
  • Each semantic model: open Settings. Note the data sources under Gateway and cloud connections, and whether each maps to a gateway connection, a shareable cloud connection or a personal cloud connection. Also note the refresh schedule and the notification recipients.
  • Settings > Manage connections and gateways: have the developer open every connection and gateway and record the Owners and Admins. Remember that you can see only what you have access to.
  • The developer's laptop: check whether an On-premises data gateway (personal mode) is installed, and where the PBIX or PBIP source files live.

Then pull model ownership in bulk. The configuredBy property in the Get Datasets In Group API is the semantic model owner. This script uses the MicrosoftPowerBIMgmt module and covers every workspace the signed-in user belongs to. It hasn't been run for this guide.

Install-Module -Name MicrosoftPowerBIMgmt -Scope CurrentUser
Connect-PowerBIServiceAccount

$person = '[email protected]'   # the single point of failure

$rows = foreach ($ws in Get-PowerBIWorkspace -All) {
    $models = (Invoke-PowerBIRestMethod -Url "groups/$($ws.Id)/datasets" -Method Get |
               ConvertFrom-Json).value
    foreach ($m in $models) {
        [pscustomobject]@{
            Workspace     = $ws.Name
            SemanticModel = $m.name
            Owner         = $m.configuredBy
            NeedsGateway  = $m.isOnPremGatewayRequired
            OwnedByPerson = ($m.configuredBy -eq $person)
        }
    }
}
$rows | Export-Csv .\semantic-model-owners.csv -NoTypeInformation

# Gateways where the signed-in user is an admin.
# Run this as the BACKUP person: an empty result means they can't manage any gateway.
(Invoke-PowerBIRestMethod -Url 'gateways' -Method Get | ConvertFrom-Json).value |
    Select-Object id, name, type

If you only have Read access to a model, the API returns its name and nothing else, so Owner is blank. Run the script as the developer, or as someone with Contributor or higher on each workspace. A Fabric administrator can cover the whole tenant instead. Get-PowerBIWorkspace -Scope Organization -Orphaned lists orphaned workspaces. The admin REST call GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=users,datasets&$top=5000 returns every workspace with its role holders and each model's configuredBy. It is limited to 50 requests an hour per tenant.

The remediation checklist

1. Workspaces: a second Admin, through a group

Only the Admin role can add or remove anyone, update or delete the workspace, or let Contributors update the app. Workspace roles can be assigned to security groups, Microsoft 365 groups and distribution lists, not just to individuals. Create a group such as BI-Admins with at least two people in it, and give the group Admin on every workspace. Members of the group who create or edit content still need a Power BI Pro or Premium Per User licence. In a workspace on shared capacity, everyone needs one, even to view content.

2. Semantic models: practise "Take over" before you need it

Each semantic model has exactly one owner. Only the owner can configure scheduled refresh, data source credentials and automatic aggregations. Anyone with Write permission can become the owner: workspace Admins, Members and Contributors have it through their role. They do this with the Take over button on the model's settings page. The REST equivalent is POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.TakeOver, which makes the caller the owner.

Taking over doesn't carry the previous owner's credentials across. Each user has one set of credentials per data source, so after taking over you must sign in as yourself or map the model to a shared connection. Then refresh and check Refresh history. Rehearse this on one low-stakes model now.

3. Gateway: co-admins, recovery key and a proper host

  • Add co-admins. Gateways can have several Admins. The other roles are Connection creator and Connection creator with sharing. Add a second Admin from Manage users on the gateway cluster, either in the Power Platform admin center under On-premises data gateways or in Power BI's Manage connections and gateways.
  • Store the recovery key. You need it to migrate, restore or take over the gateway and to add cluster members. Put it in the company password vault, next to the gateway name and the server it runs on. If nobody knows the key, plan to install a new gateway while the developer is still around, rather than after they've left.
  • Host it on a server. Microsoft advises against installing a gateway on a laptop that might be off, asleep or disconnected. A two-member cluster removes the single machine as a point of failure.
  • Retire personal mode. A personal gateway belongs to one user and can't be shared, and each user can run only one. It runs only as an interactive app, not as a Windows service. Move these sources to the standard gateway.

4. Connections: a second Owner on every one

Gateway connections and shareable cloud connections have three roles: Owner, User and User with resharing. Only an Owner can update credentials or delete the connection. For each connection, open Manage users and add a second Owner. For gateway connections, that Owner can be a security group. Models that still use personal cloud connections, which is the default after publishing, depend on whoever owns the model. Create a shareable cloud connection, then go to Gateway and cloud connections and change Maps to to point at it.

5. Credentials that don't belong to a person

Credentials stored on a connection still belong to an identity. Choose the one that best survives staff changes:

IdentityWhere it's supportedWatch out for
Service principalConnectors that list it as an authentication kind. Azure SQL Database does, for example.Azure SQL's connector docs say service principal isn't supported through an on-premises or VNet gateway. The app secret expires.
Workspace identityCloud connections used by import semantic models, for sources with Entra authentication such as ADLS Gen2. You can create one in any workspace except My workspace.Not supported for gateway connections. Only a workspace admin can create it.
Dedicated service accountBasic or Windows credentials on gateway connections, and database loginsSomeone must own its password rotation, or refresh breaks on rotation day.

Check each connector's authentication list before promising a service principal; gateway sources usually end up on a service account.

6. Dataflows, reports, apps and subscriptions

Dataflows Gen1 and Gen2 have their own ownership-change option, so apply the same take-over-then-recredential test to them. Reports and apps follow workspace roles. Admins and Members can publish and update the app, so a second Admin covers both. Workspace Admins can manage subscriptions that other people created. List the developer's subscriptions too.

7. Failure emails to a shared mailbox

In each model's scheduled refresh settings, leave Send refresh failure notification emails to semantic model owner on. Add a team mailbox or mail-enabled group in Email these contacts when the refresh fails. Recipients must be in your tenant, and mobile push notifications don't support group aliases. Refreshes you trigger on demand or through Power Automate don't send these emails. Only the owner can change this setting, so do it before the handover.

8. Source files out of the laptop

Save models as Power BI Projects (File > Save as, PBIP) and commit them to a Git repo the team owns. Fabric Git integration supports cloud Azure DevOps, GitHub and GitHub Enterprise. Semantic model support is still in preview there. Desktop can't save a PBIP directly to OneDrive or SharePoint, so if you have no repo, keep at least the PBIX files in a Teams or SharePoint library rather than on one laptop's drive. Data source credentials don't travel with the files, so this step doesn't replace the connection work above.

One-page handover template

Fill in one copy per workspace and store it next to the source files. For documenting the model itself, see how to document an inherited Power BI model before changing it.

WORKSPACE: ______________   Capacity: Shared / Premium / Fabric
Admin group: ______________ (members: ____, ____)
App: name ______ audiences ______ last published ______

SEMANTIC MODELS
Name | Owner | Schedule | Gateway/cloud connection | Failure email to
_____|_______|__________|__________________________|________________

CONNECTIONS
Name | Type (gateway/cloud) | Auth (SP/WI/service acct/OAuth) | Owners (2+)
_____|______________________|_________________________________|___________

GATEWAY
Cluster name: ______  Server(s): ______  Admins: ______
Recovery key location (vault entry, NOT the key): ______

CREDENTIAL ROTATION
Account/secret | Expires | Who rotates | Where updated in Power BI

SOURCE FILES
Repo / library URL: ______   Last committed: ______

DATAFLOWS, SUBSCRIPTIONS, OTHER JOBS
Item | Owner | Depends on

LAST TAKE-OVER TEST: date ____ by ____ result ____

Making the case to a manager who sees no risk

Don't frame it around anyone leaving. Frame it as an outage with a date on it. For example: "If my account were disabled tonight, the 6 a.m. refresh of the sales model would fail. After four failures the schedule switches itself off, and the warning email comes to me. Nobody else can see the gateway connection, update its credentials or move the gateway, because only I have the recovery key. Recovering means reinstalling the gateway and recreating every connection and model mapping."

Ask for something small and specific: two hours of a backup person's time, a Pro licence for them if they don't have one, a server or VM for the gateway, and a shared mailbox. Offer to prove it worked by having the backup take over one model and refresh it while you watch. When it fails, the error usually points to one of the causes in why refresh works in Desktop but fails in the service.

Reference: Microsoft Learn on data refresh, ownership and failure notifications, migrating or taking over a gateway with the recovery key, gateway and connection roles, and shareable cloud connections.

FAQ

Does a workspace Admin automatically own the semantic models?

No. Admin gives Write permission, which lets you take over a model, but the owner is still whoever published or last took it over. Until someone selects Take over, only that person can change the schedule or credentials.

Can IT recover a gateway if nobody knows the recovery key?

Not that gateway. Microsoft can't retrieve the key. You would install a new gateway, recreate its connections and remap each semantic model. Do it while the current admin is available.

Should the leaving developer's account be deleted right away?

Not until the checklist is done and every model has refreshed under its new owner. Disabling an account keeps its access records, while permanent deletion removes them. Ownership and credentials tied to the old account still have to be moved either way.

Interview Prep

Begin Your SQL, Python, and R Journey

Master 230 interview-style coding questions and build the data skills needed for analyst, scientist, and engineering roles.

Related Articles

All Articles