Share via

Sharepoint Online indexer documentation - clarification on modifying "data source object"

Haider, Zane 20 Reputation points
2024-10-21T06:18:10.56+00:00

In the Sharepoint Online Indexer documentation, under the section Updating the data source, it mentions that "if you modify the data source object while the device code is expired, you must sign in again in order for the indexer to run."

I just wanted to ask what is meant by "data source object". Is this referring to the Sharepoint library, when for e.g. a new document is uploaded or an existing document is modified? Or is this referring to the data source within Azure AI Search, when for e.g. the container is modified?

I really want to know whether I need to sign in using the device code whenever there is a new document uploaded to the Sharepoint library or if an existing document is modified. Or if its possible to set up an indexer on a schedule that will add the new/updated documents to the index without me having to sign in using the device code.

Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author

  1. Xyza Xue_MSFT 30,256 Reputation points Microsoft External Staff
    2024-10-22T01:45:54.3466667+00:00

    Hi @Haider, Zane ,

    Agree with SnehaAgrawal, I would make a brief summary of this thread:

    [Sharepoint Online indexer documentation - clarification on modifying "data source object"]

    Issue Symptom:

    I just wanted to ask what is meant by "data source object". Is this referring to the Sharepoint library, when for e.g. a new document is uploaded or an existing document is modified? Or is this referring to the data source within Azure AI Search, when for e.g. the container is modified?

    Current status:

    The "data source object" referred to in the Sharepoint Online Indexer documentation is the data source within Azure AI Search.

    Uploading a new document or modifying an existing document in the Sharepoint library will not require you to sign in again using the device code.However, if you modify the data source object while the device code is expired, you will need to sign in again using the device code in order for the indexer to run.


    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!


    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,721 Reputation points Moderator
    2024-10-21T16:42:59.1866667+00:00

    @Haider, Zane The "data source object" referred to in the Sharepoint Online Indexer documentation is the data source within Azure AI Search.

    see- https://learn.microsoft.com/en-us/rest/api/searchservice/data-sources/create-or-update?view=rest-searchservice-2024-05-01-preview&tabs=HTTP

    When you modify the data source object, for example, by changing the container to index, you will need to sign in again using the device code in order for the indexer to run.

    Uploading a new document or modifying an existing document in the Sharepoint library will not require you to sign in again using the device code. You can set up an indexer on a schedule to add new or updated documents to the index without having to sign in using the device code.

    However, if you modify the data source object while the device code is expired, you will need to sign in again using the device code in order for the indexer to run.

    let us know

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

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