Share via

Microsoft security | Intune | Configuration

Csongor Portik-Lukács 40 Reputation points
2025-12-07T10:54:50.0433333+00:00

Hello, I would like to ask for help.

I want to use app configuration policy to set up OneDrive on my Android company phone.

I want OneDrive to automatically log in with my company email address on my phone.

Only allow the company email address to log in.

The Android phone is a fully managed company phone. I entered the settings in JSON in app configuration policy.

{

"kind": "androidenterprise#managedConfiguration",

"productId": "app:com.microsoft.skydrive",

"managedProperty": [

{

"key": "com.microsoft.intune.mam.AllowedAccountUPNs",

"valueString": "{{userprincipalname}}"

}

]

}

Unfortunately, it doesn't work. I searched for key-value pairs, but couldn't find any others. Can automatic login to the OneDrive app be set up on Android phones, or at least can it offer the company account on the phone?

The Intune and Microsoft Authenticator apps work on the phone.

Outlook also received the app configuration policy.

Microsoft Security | Intune | Configuration

1 answer

Sort by: Most helpful
  1. Prathista Ilango 1,065 Reputation points Microsoft Employee
    2026-03-24T19:42:12.57+00:00

    Hello Csongor Portik-Lukács,

    Just to clarify - AllowedAccountUPNs helps limit sign‑in to approved org accounts, but it doesn’t handle automatic sign‑in or user detection. The first sign‑in (into any M365 app) still needs to be done by the user. Following apps signing in might pick up the user already logged in.

    Docs here for reference: https://dotnet.territoriali.olinfo.it/en-us/intune/intune-service/apps/app-configuration-policies-use-android#allow-only-configured-organization-accounts-in-apps
    Hope this helps!

    If you found the information above helpful, please Click Yes. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.

    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.