access sharepoint _api by username

Wael ElKadi 0 Reputation points
2024-06-26T08:39:36.63+00:00

i have sharepoint with anymouse access.

how i make sharepoint api request a username and password to access

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,291 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,199 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,594 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,401 Reputation points Microsoft Vendor
    2024-06-27T02:24:05.2766667+00:00

    Hi @Wael ElKadi,

    You can disable the Access permission to remote interfaces to the anonymous users, please follow the steps

    1. Navigate to the site (or sub-site) where you wish to enable anonymous access.
    2. Go to Settings - Site settings.
    3. Under Users and Permissions, click on Site Permissions.
    4. Under the Permissions tab, click on Anonymous Access.
    5. Choose whether you want Anonymous users to have access to the entire Web site or to lists and libraries only. Uncheck Require Use Remote Interfaces permission then click on OK.

    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.


  2. Wael ElKadi 0 Reputation points
    2024-07-09T09:57:49.47+00:00

    Dear we use SharePoint as internet website so Anonymous will access all pages in site collection and this pages is reading data from customs lists

    0 comments No comments