A Microsoft Teams guest may successfully join a team, read channel conversations and communicate with members but encounter “Something went wrong. Attempted to perform an unauthorized operation” when opening the Files tab. The error can appear even when internal employees access the same documents without difficulty.

Microsoft identifies incorrectly configured SharePoint and OneDrive sharing settings as a cause of this error. Microsoft 365 Groups guest permissions can also restrict access to team resources, so the investigation should focus on those settings before attempting unrelated application repairs.

Identify the Failure

Determine whether the guest receives the error when opening the Files tab, selecting a document or accessing a file shared through chat. These situations involve different storage locations and permissions, even though they appear within the same Teams interface.

Ask an internal team member to open the same channel and document. If internal members can access the files but the guest can not, investigate external sharing and guest permissions before changing anything related to the Teams application.

Guest's problemFirst area to check
Cannot open the Files tabMicrosoft 365 Groups and SharePoint sharing
Cannot access private-channel filesPrivate-channel membership
Cannot open one specific documentFile permissions or protection
Cannot open a chat attachmentOneDrive sharing permissions
Cannot enter the teamGuest authentication or tenant policies

An external user who cannot complete authentication requires a different troubleshooting process. BusinessTally's Microsoft Teams guest token troubleshooting guide covers expired authentication credentials, invitation redemption problems and tenant restrictions that prevent guests from signing in or reaching their assigned resources.

Check Group Guest Access

Microsoft Teams uses Microsoft 365 Groups to manage standard team membership and access to associated resources. An external account may appear in a team while organization-level group settings still prevent the guest from accessing shared content.

An authorized administrator should open the Microsoft 365 admin center → Settings → Org settings → Microsoft 365 Groups. If necessary, expand the navigation menu through Show all, then select Microsoft 365 Groups under the Services tab.

Review these settings:

  • Let group owners add people outside your organization to groups. This controls whether group owners can invite external people to Microsoft 365 Groups.

  • Let group members outside your organization access group content. This controls whether guest members can access content associated with those groups.

The second setting is especially relevant when the guest already belongs to the team but cannot access its files. The first matters when owners can not add external collaborators, although existing guests may encounter additional access restrictions even after joining.

If a required setting is disabled, determine whether the restriction is intentional before requesting an administrative change. Enable the setting only when it aligns with the organization's approved external-collaboration policy.

If both controls already permit guest access, avoid repeatedly disabling and enabling them. Continue investigating SharePoint sharing and the permissions associated with the affected team.

Microsoft explains these controls in its Microsoft 365 Groups guest access documentation.

Review SharePoint Sharing

Standard Microsoft Teams channel files are stored in SharePoint, which maintains its own external-sharing controls. A guest can therefore authenticate successfully in Teams while SharePoint prevents access to the documents behind a channel.

A SharePoint Administrator should open the SharePoint admin center → Policies → Sharing and inspect the organization's external-sharing configuration. The SharePoint setting establishes the maximum sharing permission available to individual SharePoint sites.

Sharing settingExternal access
Only people in your organizationPrevents external sharing
Existing guestsPermits sharing with guests already in the directory
New and existing guestsPermits authenticated sharing with existing and new guests
AnyoneAlso permits unauthenticated sharing links

If the organization uses Only people in your organization, standard external-sharing permissions can not provide the invited guest with access. An administrator must determine whether authenticated guest collaboration is permitted before changing that setting.

For an approved guest already present in the organization's directory, Existing guests may be sufficient. New and existing guests allows additional authenticated external collaborators to be invited when the organization permits that workflow.

Avoid choosing Anyone simply because a document fails to open. Anonymous sharing is unnecessary when the intended recipient should access files using an authorized guest account.

The administrator should also inspect any restrictions on external email domains. A domain allowlist or blocklist can prevent collaboration with a particular external organization even when the general sharing level permits guests.

Inspect the SharePoint Site

An organization can permit external sharing overall while restricting guest access to individual SharePoint sites. This explains why an invited collaborator might open files belonging to one team but receive an authorization error in another.

Open the affected channel in Microsoft Teams and locate its Files or Shared area. Use Open in SharePoint, when available, to identify the site and document library containing the inaccessible files.

A SharePoint Administrator should then open SharePoint admin center → Active sites and select the relevant team site. Under the Settings tab, choose More sharing settings to inspect its external-sharing configuration.

Compare the site setting with the organization-level configuration. A site restricted to internal users can continue blocking guests even when the organization allows authenticated external sharing.

If the organization's policy permits the guest, an administrator can evaluate whether the site should allow Existing guests or New and existing guests. Apply the least permissive setting that supports the approved collaboration requirement.

Remember that individual sites can not override stricter organization-wide external-sharing restrictions. Changing a site setting alone will not restore access when external sharing remains prohibited across SharePoint.

For additional information about these controls, see Microsoft's SharePoint site-sharing documentation.

Verify Channel Membership

A guest who belongs to a standard Teams channel may still lack access to a private channel. Private channels have separate memberships and SharePoint sites, so membership in the parent team does not automatically provide access to their files.

Ask the private-channel owner to open the channel's membership settings and verify that the intended guest appears as a member. If the account is missing, the owner should use the approved Teams membership process to add it.

The guest must already belong to the parent team before being added to a private channel. Once membership is corrected, verify that the guest can access the intended private-channel files without being granted access to unrelated channels.

Private-channel site permissions are managed through Teams rather than by manually modifying the SharePoint site's membership groups. Microsoft synchronizes those permissions with the channel, so changing them independently is not the appropriate solution.

If the affected files belong to a shared channel, the administrator should investigate that channel's separate collaboration requirements. External participation in shared channels uses Microsoft Entra B2B direct connect rather than ordinary Teams guest membership.

Check File Permissions

When a guest can open the Files tab and access most documents but cannot open one particular file, investigate permissions on that item. An organization-wide sharing change is unlikely to be the best first response when the problem is limited to an individual document.

Ask the file owner to locate the affected document in SharePoint and open Manage access. Inspect the people, groups, and sharing links that currently grant permission to the file or its containing folder.

A common source of confusion is a link restricted to People in your organization. Forwarding that link to an external contractor does not automatically extend its permissions to the contractor's guest account.

If external sharing is authorized, the owner can create an appropriate Specific people link or use another approved permission method. The recipient must authenticate with the identity that has been granted access.

The owner should also verify the intended permission level. A contractor who only needs to review a document should not automatically receive editing permissions.

If ordinary file permissions appear correct, investigate whether additional security restrictions apply. Sensitivity labels, restricted domains and other organizational protection controls may intentionally prevent external access.

These restrictions should be reviewed by the responsible administrator before changes are approved. Removing document protection or creating an anonymous link merely to bypass the error could expose information beyond the intended audience.

Check OneDrive Sharing

A Teams chat attachment normally resides in the sender's OneDrive rather than the SharePoint library associated with a channel. This distinction matters when a guest can access channel documents but receives an authorization error while opening a file shared in a private conversation.

Ask the sender to locate the document in OneDrive and inspect its sharing permissions. Verify whether the intended guest has access through the correct identity and whether the link supports authenticated external recipients.

An administrator can review OneDrive's external-sharing level under SharePoint admin center → Policies → Sharing. OneDrive can be configured more restrictively than SharePoint, but it cannot allow broader external sharing than the organization-wide SharePoint setting.

If the original failure occurs only in a standard channel's Files tab, prioritize SharePoint rather than changing unrelated OneDrive settings. Investigating the actual storage location reduces unnecessary configuration changes.

Test the Original File

After making an approved correction, ask the guest to reopen the exact channel and document that previously produced the unauthorized-operation message. Testing another document is insufficient because different files may have different access permissions.

Verify that the guest can open the Files area, access the intended document, and perform only the actions permitted by their role. The original error should disappear without requiring additional access to unrelated organizational resources.

If the message remains, ask an authorized owner to provide a direct SharePoint link to the same document. Have the guest open it in a private browser session while authenticated with the intended external account.

If both Teams and SharePoint reject access, investigate the remaining sharing, membership and security restrictions. If the direct SharePoint link works but the Teams Files interface fails, document that difference before continuing.

Avoid repeatedly removing and recreating the guest account without evidence of an identity problem. A valid account can continue encountering the same authorization error when the underlying file-sharing restriction remains unchanged.

Run the Guest Diagnostic

Microsoft provides a Teams Files Guest Access diagnostic for administrators investigating guest file-access failures. It checks configurations that may prevent external users from reaching files in Teams.

An eligible Microsoft 365 administrator can open Microsoft's official unauthorized-operation troubleshooting page and select the Run Tests link. This launches the diagnostic in the Microsoft 365 admin center, where the administrator can review the available findings.

Microsoft states that this diagnostic is unavailable in Microsoft 365 Government, Microsoft 365 operated by 21Vianet and Microsoft 365 Germany. Administrators using those environments should follow their supported troubleshooting or escalation procedures instead.

If the diagnostic does not identify the cause, collect the complete error message, failure timestamp, affected guest identity, channel type and document location. Record the Microsoft 365 Groups settings, SharePoint sharing levels and results of the direct-file access test.

These details can help Microsoft support identify whether the problem involves a broad sharing restriction or a permission issue affecting one resource. They also reduce unnecessary account resets and repeated organization-wide configuration changes.

The issue is resolved when the authorized guest can open the intended files with the permissions required for their work. If the organization intentionally prohibits external access, preserve the restriction and use an approved alternative rather than weakening security controls.

For other collaboration issues, the BusinessTally Microsoft Teams troubleshooting hub provides separate guidance on authentication, application repair and related software problems.