# Article Name 3 Ways to Remove Users from OpenAI Projects # Article Summary Discover three ways to remove users from OpenAI Projects for straightforward access management and cleaner project control # Original HTML URL on Toriihq.com https://www.toriihq.com/articles/how-to-remove-user-from-projects-openai # Details Keeping the right people in your OpenAI Projects shouldn’t be hard. When roles change or contractors roll off, removing access quickly keeps data safe and billing clean. In this guide, you’ll learn three reliable ways to remove users from a project: directly in the dashboard, programmatically with the API, and centrally through your identity provider. We’ll cover when to use each method and what to watch for with roles, API keys, seats, and audit needs. ## Use OpenAI's UI Here, you’ll use OpenAI’s UI to remove a member from a specific project. This only affects their access to that project, not your whole organization. ### Check your permissions You need permission to manage project members. - Roles that can remove members: - Project Owner - Project Admin - If you don’t see the Members area or a Remove option, ask someone with one of these roles to help. ### Open the correct project - Sign in to the OpenAI platform. - Use the project switcher at the top left to pick the project you want to update. ### Go to Members - In the project, open Members. Depending on your view, you’ll find it in the left sidebar or under Settings, then Members. - You’ll see a list of people with their roles. ### Remove the user - Find the person you want to remove. Use the search box if the list is long. - Open the action menu next to their name. Look for a three-dot menu, a role dropdown, or a trash/delete icon. - Choose Remove from project. - Confirm in the popup. ### What changes right away - They lose access to the project in the UI and won’t see it in the project switcher. - Calls they make that require this project’s access will fail with a permissions error. - The project itself, its settings, service accounts, and shared keys remain for other members. ### If you can’t remove them - You might not have a high enough role in the project. - Some orgs require at least one Owner on a project. Add another Owner first if needed, then remove the user. - If the person isn’t listed, you’re likely in the wrong project. Switch projects and check again. ## Use Torii Instead of working in OpenAI directly, you can use Torii [https://www.toriihq.com/], a SaaS Management Platform, to remove user from projects in OpenAI. SMPs let you centrally manage SaaS subscriptions and integrations, making it easy to programmatically onboard/offboard users, review subscription details, and more. Where OpenAI typically requires manual steps, Torii enables you to automate the workflow so it runs whenever a chosen trigger occurs. Triggers might include a new hire, an employee offboarding, a contract renewal, and similar events. If this task recurs, automation can significantly reduce effort. To remove user from projects in OpenAI straight from Torii, follow these steps: ### 1. Sign up for Torii Contact Torii [https://www.toriihq.com/], and ask for your free two-week proof-of-concept. ### 2. Connect your OpenAI account to Torii After your account is active, connect OpenAI to Torii (assuming you already have an OpenAI account). Here are the instructions for the OpenAI integration [https://support.toriihq.com/hc/en-us/articles/32590037715739-OpenAI-Integration]. ### 3. Create a Torii workflow for OpenAI Inside Torii, build an automated workflow to remove user from projects in OpenAI. Go to the Workflows tab, define your trigger, then add an action that will remove user from projects in OpenAI. From that point on, whenever the trigger fires, OpenAI will be updated. ## Use OpenAI's API Here, you’ll use OpenAI’s API to remove a user’s membership from a specific project. This is useful when someone changes teams or no longer needs access. ### Step 1: Use an API key with the right permissions You need an API key that can manage project memberships, such as an organization admin or a project owner. Keep the following handy as environment variables: - OPENAIAPIKEY - ORGID (like orgabc123) - PROJECTID (like prjabc123) Example shell setup is: ### Step 2: List project members to find the user’s identifier You’ll need the user’s ID inside this project. The simplest way is to list current members, then pick the right user by email or name from the response. Example curl is: - From the response, locate the user you want to remove: - Note the user’s id field (for example, usr12345). You’ll use it in the next step. - If you only know the email, search for the matching email in the members list first. ### Step 3: Remove the user from the project Call the delete endpoint with the user’s ID. This revokes their project membership. Example curl is: - Expect a success status: - 204 No Content means the user was removed. - Common errors and what they mean: - 403 Forbidden: your key does not have permission to manage this project. - 404 Not Found: the user is not a member of this project, or one of the IDs is wrong. ### Step 4: Verify the removal List members again and confirm the user no longer appears. Example curl is: - Check that the user’s ID or email is no longer in the data array.