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
- Open Microsoft Teams: Launch the desktop app or visit teams.microsoft.com.
- Navigate to the Channel: Click Teams on the sidebar, then select your Team and the specific Channel.
- Get the URL of a folder or subfolder:
- In the Files tab, locate the folder or create a new one.
- Click the … next to the folder name and select Copy Link.
- Choose the appropriate permissions and click Copy.
- The URL is now on your clipboard and can be pasted into an email or document.
- Get the
siteUrl
:
- Click the Files tab in the channel.
- Click the … (More options) button near the top.
- Select Open in SharePoint. A browser tab will open the SharePoint site.
- The full address in your browser is the
siteUrl
.
- Find the
groupId
and channelId
:
- Back in Teams, click the … next to the channel name in the sidebar.
- Select Get link to channel.
- From the URL shown:
- channelId is after
/channel/
and before the next slash.
- groupId is after
groupId=
in the query string.
- Identify the
channelName
: It's the friendly name shown in Teams and usually appears after the channelId
in the URL.
Hint: You can navigate into subfolders and use the Copy Link option to get URLs for specific nested folders.
If you need further help, please contact the Bowdoin College Service Desk.