Skip to main content
Question

Detection of admin/co-admin users through API

  • May 21, 2025
  • 1 reply
  • 5 views

Forum|alt.badge.img

Is there a way, or a plan to implement a way, for the detection of admins or co-admins through the API or one of the SDKs? When running our auto-provisioning and sync scripts, we would like to avoid the attempted update to these users and were hoping to avoid the manual management of a list of users to exclude, or a group membership to exclude, in the sync operation.

 

Thanks for any insight into this.

1 reply

Forum|alt.badge.img

This might work...

Iterable users = BoxUser.getAllEnterpriseUsers(api, "p.kdomen", "name,role"); // e.g. filter by p.kdomen who is a co-admin
            for (BoxUser.Info user : users) {
                System.out.println(user.getName());
                System.out.println("\t" + user.getRole());
}

output:

Box Admin
    COADMIN