This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change visibility of all activities

Former Member
Former Member
Hi,

Posting here since the main forum seems to be flooded with spam at the moment.

Until know I had all my activities public, now I would like to make them private, so that they are visible only to my connections and groups. I already changed the it in the user settings, but it seems that does not affect previous activities. Do I really have to change the visibility for those previous ones one by one or is there a better way?

Cheers, Robert
  • Once the activity is uploaded to Garmin Connect, the only way to change the privacy setting for that activity via Garmin Connect is to do it manually. If you go to the Activities page, you can click Quick Edit and then change the setting for each activity on the page (there are 20 per page).

    If you are willing to install a python-3.x interpreter, I wrote a script that can update the privacy setting of all of your activities. You can find it here. If you decide to go this route, the script is pretty simple. As an example, you could run the script from the command line to make all activities private...

    C:\>python garmin_privacy.py --private


    It can change the privacy setting to any of private, subscriber, groups or public as well as display the current privacy for each activity. It also supports filtering activities. For example this would make all running activities public...

    C:\>python garmin_privacy.py --filter activityType=running --public
  • Former Member
    0 Former Member over 10 years ago
    Thanks! I think The manual via quick edit is fine, I have only 100 or so.

    Cheers, Robert
  • TRAVIS.VITEK I just wanted to say that I used your script and while I'm sure it is no surprise to you it worked a treat. Thanks so much for this.
    It was very simple to use and not I'm feeling a touch safer with my activities :)
    thank you
  • Former Member
    0 Former Member over 10 years ago
    TRAVIS.VITEK, greetings. Just ran your script to change ~300 activities to public and encountered these errors... Should the script still work as of today?

    --
    Privacy Change Script>python privacy_change_script.py --public

    Username: username
    Password:
    Traceback (most recent call last):
    File "privacy_change_script.py", line 215, in <module>
    main()
    File "privacy_change_script.py", line 155, in main
    fetch_html_from_url(url)
    File "privacy_change_script.py", line 61, in fetch_html_from_url
    with urllib.request.urlopen(request, timeout=30) as response:
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 160, in urlopen
    return opener.open(url, data, timeout)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 479, in open
    response = meth(req, response)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 591, in http_response
    'http', request, response, code, msg, hdrs)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 511, in error
    result = self._call_chain(*args)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 451, in _call_chain
    result = func(*args)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 696, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
    .
    .
    .
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 479, in open
    response = meth(req, response)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 591, in http_response
    'http', request, response, code, msg, hdrs)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 517, in error
    return self._call_chain(*args)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 451, in _call_chain
    result = func(*args)
    File "C:\Program Files (x86)\Python 3.3.0\lib\urllib\request.py", line 599, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
    urllib.error.HTTPError: HTTP Error 404: Not Found
    Privacy Change Script>
    ----
    I'm hoping to avoid setting these on-by-one...

    Thanks for any assistance,
    Scott
  • Former Member
    0 Former Member over 9 years ago
    Hello
    I have made, that change as you recommend, my activity privacy is set to everyone and that it can be seen by everyone and that I want to participate in segment but it still will not show my segment times on the leaderboard. This sort of "glitch" is so annoying!
    Thanks for any help.
  • Former Member
    0 Former Member over 9 years ago
    Hello
    I have made, that change as you recommend, my activity privacy is set to everyone and that it can be seen by everyone and that I want to participate in segment but it still will not show my segment times on the leaderboard. This sort of "glitch" is so annoying!
    Thanks for any help.


    Same exact problem with mine.
  • Hi Travis, how do I run your script? I can't seem to find the instructions in the forum. 

  • This is a very old post -- it used to have a link to some code, but links were removed from old posts when the forum platform changed a couple of years ago :/.

    You can try this instead:

    https://forums.garmin.com/apps-software/mobile-apps-web/f/garmin-connect-web/107758/bulk-change-of-privacy-settings-for-past-activities/995462#995462