Create App User

Create App User

App Users are programmatic user accounts that may only be created by apps that are using JWT authentication. They are designed to allow for users, groups, or processes to be represented behind the scenes in an application without the need for the user to have a Box account to log in.

App users can only be accessed by the Box application through the APIs and do not have credentials to log in to box.com directly.

Common App User Patterns

Typically app users are created for a number of different patterns:

  • To represent a single application user or group of users without a box.com account.
  • To represent an application process, such as having the app user monitor all events within an enterprise.
  • To provide the application with the ability to completely control the file and folder structure of a user account without the possibility of that content being modified through the box.com web app.

Creating a New App User

To generate a new app user, the minimal information that will be required will be a name for the app user.

Java
BoxUser.Info createdUserInfo = BoxUser.createAppUser(api, "A User");
Python
new_app_user = client.create_user('App User 123', login=None)
.NET
var userParams = new BoxUserRequest()
{
    Name = "App User 12",
    ExternalAppUserId = "external-id",
    IsPlatformAccessOnly = true
};
BoxUser newUser = await client.UsersManager.CreateEnterpriseUserAsync(userParams);

To see all available optional parameters that may be set when creating an app user, see the create user endpoint.

Once the app user is created a user object will be returned. Within the user object is an ID for the app user, which may be used to make API requests to modify the user in the future.