Skip to content

Tenant properties API GetStorageEntity not authorized to External Users #1137

@luismanez

Description

@luismanez

Category

  • Question
  • Typo
  • [ X] Bug
  • Additional article idea

Expected or Desired Behavior

You can get a tenant property value using REST API (GetStorageEntity) even when the user is an external user.

Observed Behavior

I´m getting an UnauthorizedAccessException

Steps to Reproduce

  • Add a tenant property
  • Share a site with an external user, and log into the site
  • From an spfx webpart, do a REST call to:
.../sites/SITE/_api/web/GetStorageEntity('PROPERTY_KEY')

you will get an UnauthorizedAccessException
Same steps with a "normal" user works as expected.

I guess this is because the Tenant properties are stored in the App Catalog site, where the external user has no access. I think it shouldn´t be the case, as a developers, we want to get Tenant properties from code, even if the user is an external user. Anyway, if this is by design, you should add the documentation and specify it

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)status:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions