Skip to content

Fix workaccount setup#3350

Open
fynngodau wants to merge 3 commits intomicrog:masterfrom
e-foundation:fix-workaccount-setup
Open

Fix workaccount setup#3350
fynngodau wants to merge 3 commits intomicrog:masterfrom
e-foundation:fix-workaccount-setup

Conversation

@fynngodau
Copy link
Member

@fynngodau fynngodau commented Mar 20, 2026

  • Issue 1:
    Intune now sets a policy such that users are not allowed to create work profiles anymore. This is good in principle because users are never supposed to do this manually (and are, in fact, incapable of doing so). Our code is also affected because WorkAccountService triggered sign-in flow in WorkAccountAuthenticator through AccountManager.addAccount, which is the action prohibited by the policy → leading to popup "This setting is blocked. If you have any questions, contact your IT admin.". We can still (and need to) call AccountManager.addAccountExplicitly to register the account with the system.
  • Issue 2: like https://github.com/microg/GmsCore/pull/3257/changes, same fix

I will provide some more cleanup this weekend. (edit, done)

Intune now sets a policy such that users are not allowed to create work
profiles anymore. This is good in principle because users are never
supposed to do this manually (and are, in fact, incapable of doing so).
Our code is also affected because `WorkAccountService` triggered sign-in
flow in `WorkAccountAuthenticator` through `AccountManager.addAccount`,
which is the action prohibited by the policy. We can still (and need to)
call `AccountManager.addAccountExplicitly` to register the account with
the system.
@fynngodau fynngodau marked this pull request as draft March 20, 2026 18:36
@fynngodau fynngodau marked this pull request as ready for review March 22, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants