Collection Variables disappeared after sharing the collection

I have been using the “My Workspace” workspace to store and execute some API calls. I put my API calls inside an environment called “API”. Inside “API”> Settings, I stored lots of variables for all the common things between all the API calls I make. When creating these variables in-line (e.g. highlighting part of the API URL > create variable), I always selected the “API” Collection as the variable’s scope + gave an appropriate name.

Today, I wanted to share this with my team so we could consolidate the API calls we’re all making. I know that you can not simply give access to your “my Workspace” without creating a Team Workspace.

To share the “API” Environment with my colleague, I followed the below steps:
Steps to Reproduce

  1. In the “Collections” tab > Right-click the “API” collection
  2. Select “Share”
  3. Enter the email address(es) to share it to
  4. Select the “Create Team workspace and move this collection”.
  5. Select the “share” button

What I expected:
Everything under the “API” collection is moved to the new team workspace and ceases to exist in “My Workspace”.

What happened:
Everything except the variables in the "API collection were moved to the new team.
References to the variable remained where they were (e.g. the URL = https://my.test.get.url.com/students/{{My Student Number Variable}}

Workaround:
Re-create the variables

Platform Details:

  • Postman for Windows 11.7.0
  • OS Platform Windows 11 (win32 10.0.22631)

Solution Attempt Evidence
I’ve read through the existing discussions. I think this is the closest to my issue. However, the act of moving the collection into the new team workspace is what loses the variable definitions and values.
I tried finding where the variables are stored in Postman’s installation directory, but because my “My Workspace” now has zero variables (the other environments have no variables configured), I couldn’t find it, nor in Recycle Bin in case it was a file deleted per the process above.

Hey @matthewwillis20 :wave:

Welcome to the Postman Community! :postman:

Are these Collection Variables or Environment Variables?

When the Collection was shared with the Team, what do you see in the Variables section of the Collection?

We all the changes saved before sharing the Collection?

If you could provide some visual examples of the behaviour that would help to see what the problem might be here.

Hi Danny,

Sorry for the belated response.

These are collection variables inside the collection I converted. Before sharing the collection:

Collections > My Collection > Variables had all the variables used by the get and post requests saved under this collection. All variables were saved before conducting the steps in my OP.

After I completed the steps in my OP, the variables tab was completely empty. Unfortunately, I can’t give you any screenshots, as I’ve already conducted my workaround so I can continue my job. The steps provided are accurate and should be reproducible that way.

Edit: Here is a screenshot of one of my GET requests that are now broken as a result of this issue. I used Collection variables to store the username and password for the API request - these now don’t exist in the Collection’s variables at all: