SPFX is able to fetch tenant properties when used by guest user

Nikhil Rane 191 Reputation points
2022-02-16T13:28:34.31+00:00

Steps I have performed,

  • Set Configuration as tenant properties
  • List item
  • Create SPFX used to open file
  • Loaded configurations from tenant properties Read Tenant Properties, In order to read I used this library.
  • Deployed SPFX
  • Added Guest user in my tenant user list
  • Created new site
  • Shared file with guest user

This SPFX able to fetch tenant properties while used by guest or anonymous(anyone with link outside tenant) user.

As per documentation SPFX can fetch tenant properties in context of tenant users.

Question
Is this an expected behavior, that SPFX able to fetch tenant properties while used by guest or anonymous(anyone with link outside tenant) user. As I am not able to find any documentation backing this up.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,613 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,899 questions
0 comments No comments
{count} vote

Accepted answer
  1. RaytheonXie_MSFT 34,741 Reputation points Microsoft Vendor
    2022-02-17T07:26:11.43+00:00

    Hi @Nikhil Rane ,
    Since the rest api can access to the tenant properties with read permission. It is able to the users with read permission to get tenant properties by spfx.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.