Skip to main content
Question

How to create a group for app users?

  • May 22, 2025
  • 2 replies
  • 40 views

Forum|alt.badge.img

Hello ,

 

      Currently we have a box Enterprise and an Managed user account ('Function id') for all the files and  folders. And we created 25 app users as co-owner for the same files and folders.

 

The case is :

        We want use the Function id(an Managed user) to create a group include whole 25 app users. The step of creating group is fine. But I cannot create the membership of the App users to the groups. I don't know why, and the api error seems I do not have the permission to do that.

 

        Otherwise, How to grant the access of folders to multiple users at a time in bulk? 

 

2 replies

Forum|alt.badge.img

Correct my problem:

    I have an application and Create 25 APP users by the application token. Now I need create a group for 25 app users. But It seems the application cannot create the groups for the app users.


Forum|alt.badge.img

 I tested adding App Users to a group, and it worked as expected. Below are the steps and cURL commands I used. 

 

1. Create a new group using the Create Group endpoint.

 

curl https://api.box.com/2.0/groups \
-H "Authorization: Bearer ACCESS_TOKEN" \
-d '{"name": "App Users Test Group"}' \
-X POST 

 

2. Add App User to a group using the Create Membership endpoint

 

curl https://api.box.com/2.0/group_memberships \
-H "Authorization: Bearer ACCESS_TOKEN" \
-d '{ "user": { "id": "APP_USER_ID"}, "group": { "id": "GROUP_ID" } }' \
-X POST

 

3. Get group members using the Get Membership for Group endpoint.

curl https://api.box.com/2.0/groups/GROUP_ID/memberships \
-H "Authorization: Bearer ACCESS_TOKEN"

 

Can you please share the error message the API returns when you try to add App Users to a group? Can you also please confirm if you have enabled the Manage Groups application scope?