java.lang.SecurityException: You need MANAGE_USERS permission to: query user

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via Android Enthusiasts by alijandro
, 1 year ago
You need MANAGE_USERS permission to: query user
via blogspot.com by Unknown author, 2 years ago
Need BLUETOOTH permission: Neither user 10127 nor current process has android.permission.BLUETOOTH.
via xda-developers.com by Unknown author, 1 year ago
no permission to read the sync settings: Neither user 10007 nor current process has android.permission.READ_SYNC_SETTINGS.
via GitHub by renas
, 2 years ago
Injecting to another application requires INJECT_EVENT permission
via GitHub by muphy
, 1 year ago
Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
via GitHub by christocracy
, 1 year ago
Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
java.lang.SecurityException: You need MANAGE_USERS permission to: query user
at android.os.Parcel.readException(Parcel.java:1540)
at android.os.Parcel.readException(Parcel.java:1493)
at android.os.IUserManager$Stub$Proxy.getUserInfo(IUserManager.java:629)
at android.os.UserManager.getUserInfo(UserManager.java:528)
at android.os.UserManager.isManagedProfile(UserManager.java:482)

Users with the same issue

8 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 hour ago
Samebug visitor profile picture
Unknown user
Once, 12 hours ago
Samebug visitor profile picture
Unknown user
Once, 18 hours ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
253 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.