HashiCorp Cloud Platform
Scan Microsoft Teams for secrets
Connect Microsoft Teams as a data source to HCP Vault Radar to monitor Teams channels for sensitive data and secrets.
If you are new to HCP Vault Radar, checkout the HCP Vault Radar quickstart tutorial series.
Prerequisites
- HCP IAM user with the HCP owner or admin role
- Access to the Microsoft 365 tenant that contains the Teams data you want to scan
- Enable admin consent workflow in the Microsoft 365 tenant (if tenant-wide consent is restricted)
- Permission to register an application in Microsoft Entra ID (for agent scan)
- Vault Radar agent deployed and running. Refer to the HCP Vault Radar operations tutorials (for agent scan)
Add a Microsoft Teams data source
Log into the HCP Portal with an HCP IAM user that has the HCP owner or admin role.
Click Vault Radar.
Click Settings.
Click Data Sources.
Select HCP Vault Radar Scan.
Under Team Collaboration, click Microsoft Teams.

Click Connect to Microsoft Teams. This starts the Microsoft sign-in and consent flow.
Sign in with an account of the tenant you want to scan.
Review the requested permissions and click Accept.
HCP Vault Radar displays the message Authenticated to Microsoft Teams.
Click Next.
Select either All teams and channels or Select teams and channels to monitor.
Click Finish to start onboarding and scanning the selected Teams channels.
Assign a group to a resource
Once you add a data source, an HCP user with the admin role must assign
a group to each of the monitored resources within each data source. You can
assign each resource to only one group.
If you do not already have a group, refer to the Identity and Access Management groups documentation to create a group.
Navigate to the Project dashboard.
Click Access control (IAM).
Click Add new assignment.
Search the name of the group in the Search for an assignee search field.
Click the group name in the search results.
Click the Select service pulldown menu and select Vault Radar.
Click the Select role pulldown menu and select the Vault Radar Developer role.
Click Save.
Click Back to Dashboard.
Click Vault Radar.
Click Resources.
Select the resource you want to assign to a group and click Assign groups.
Click the Assign resoruce to group pulldown menu.
Select the group that requires access to the resource.
Select either the Viewer or Contributor role.
Click OK.
Update data source
Navigate to Settings.
Click Data Sources
Click the vertical ellipsis to the right of the data source..
To update the monitored data sources, click Edit data sources.
To update the token, click Edit data source host details.
To delete the data source host, click Delete data source host.
Tutorials
Learn how to evaluate and implement HCP Vault Radar in your environment with our tutorials.
- HCP Vault Radar quickstart - Follow HashiCups, a fictitious coffee company, as they onboard HCP Vault Radar and scan their data sources for secrets.
- HCP Vault Radar operations - Learn how HashiCups operations team uses HCP Vault Radar advanced features to scan data sources with the Vault Radar agent, and correlates findings with HCP Vault to manage secrets.
- HCP Vault Radar developer - Learn how HashiCups developers use HCP Vault Radar advanced features to understand secret exposure, identify potential risks, and prevent leaked secrets during the software development lifecycle.
