RAG application document retrieval based on the user using azure AD details

htchameleon 0 Reputation points
2025-01-22T06:24:54.2533333+00:00

Project Overview

We have developed a chatbot as an AI assistant for the company document repository. This chatbot is created using Azure Services, including Azure OpenAI and an Azure web application for the chat interface. The data source for the chatbot is SharePoint, we have currently morethan 4 SBUs and all the documents are stored in a sharepoint document repository in separate folders per SBU.
Azure App Services - chat bot is deployed using azure openai playgroud deployment as a web app option

Data Source - SharePoint

Azure AI Search is used to to search the documents (index, indexer), from the indexers we are extracting the meta data field as SBU which in each document we have defined.

Azure Openai gpt 4o used.

Requirement

When a user from a certain SBU asks a question from the chatbot, the bot should only retrieve the information/answers from that user’s registered SBU or from the Common (group-wide) documents.

please tell me how to achieve this in stepwise in detail (i am new the Azure)

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,615 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Manas Mohanty (Quadrant Resource LLC) 135 Reputation points Microsoft Vendor
    2025-02-03T11:50:06.6266667+00:00

    Hi htchameleon!

    We have noticed that you rated an answer as not helpful. We appreciate your feedback and are committed to improving your experience with the Q&A.

    Thank you for sharing the documentation you are referring.

    You can check the below GitHub document for simplicity

    search security trimming azure search

    1. Creation of user groups and addition of users in user groups -create-users-and-groups 1, creates users and groups 2
    2. applying Document level access control with user group - modifies the access of certain documents in an index with certain user groups - Reference on modifying ACL on documents in the same index
    3. Update "default authentication in app " to use Document level access filtering

    Here is diagram explaining the authentication on "Secured Filtered Knowledge:

    AppLoginArchitecture

    Could you please re-take the survey and upvote on this response if it is helpful to you.

    Thank you.


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.