How to Get Teams Channel URLs, Folder Links, and IDs

Questions

  • How do I find the siteUrl, groupId, channelId, and channelName for a Microsoft Teams channel?
  • How can I get a direct link to a Teams folder or subfolder?
  • Can I use Teams desktop or web to find these details?
  • Why might I need these URLs and IDs for Teams or SharePoint folders?

Environment

This guide applies to Microsoft Teams users on the desktop or web app. It explains how to obtain direct links to folders within Teams channels  and how to locate key identifiers like siteUrl, groupId, channelId, and channelName. These are useful for automation, integrations, sharing, or troubleshooting tasks.

Resolution

  1. Open Microsoft Teams: Launch the desktop app or visit teams.microsoft.com.
  2. Navigate to the Channel: Click Teams on the sidebar, then select your Team and the specific Channel.
  3. Get the URL of a folder or subfolder:
    1. In the Files tab, locate the folder or create a new one.
    2. Click the next to the folder name and select Copy Link.
    3. Choose the appropriate permissions and click Copy.
    4. The URL is now on your clipboard and can be pasted into an email or document.
  4. Get the siteUrl:
    1. Click the Files tab in the channel.
    2. Click the … (More options) button near the top.
    3. Select Open in SharePoint. A browser tab will open the SharePoint site.
    4. The full address in your browser is the siteUrl.
  5. Find the groupId and channelId:
    1. Back in Teams, click the next to the channel name in the sidebar.
    2. Select Get link to channel.
    3. From the URL shown:
      1. channelId is after /channel/ and before the next slash.
      2. groupId is after groupId= in the query string.
  6. Identify the channelName: It's the friendly name shown in Teams and usually appears after the channelId in the URL.

If you need further help, please contact the Bowdoin College Service Desk.

Print Article

Related Services / Offerings (1)

Request the addition of a PaperCut Scan Location such as a Teams folder or SharePoint location.