Code Monkey home page Code Monkey logo

Comments (6)

praveen-elastic avatar praveen-elastic commented on September 23, 2024

Yes, if a user has Owners Permission in SharePoint, the same will be reflected in the Enterprise Search i.e. the _allow_permission field will contain the list all the of permissions (sharepoint groups) assigned to that object in SharePoint

from enterprise-search-sharepoint-server-connector.

catmanjan avatar catmanjan commented on September 23, 2024

@praveen-elastic Connector Owner isn’t a group in SharePoint though, or is this the same thing as Site Owner?

I thought maybe the Connector Owners was a workplace search concept

from enterprise-search-sharepoint-server-connector.

praveen-elastic avatar praveen-elastic commented on September 23, 2024

Hey @catmanjan, I think I am a bit confused. Let to give you a high-level overview of how permissions are synced.

First step: the connector creates a mapping of SharePoint to Workplace user using a mapping csv present in the directory which specifies what's the name of the SharePoint user in Workplace Search. If a mapping csv is not present, it takes the name of SharePoint user to be same in Workplace Search.

Second Step: The connector fetches all the user_ids from SharePoint and maps them to the Workplace Search user names according to the mapping file. If the mapping for that SharePoint user is absent, the connector takes the name of that user same in Workplace Search.

Final Step: For each user_id we fetch the list of permissions assigned to it in SharePoint and then call add_permission api with this list of permissions and the mapped name in Workplace Search.

Coming to document level permission: These are added at the time of full sync/ incremental sync. Each document will contain _allow_permission that contains a list of permissions added to that object in SharePoint, if enable_document_permission is set to Yes.

Hope this helps. If not can you tell me what is Connector Owners referring to ? Is that the SharePoint User name ?

from enterprise-search-sharepoint-server-connector.

catmanjan avatar catmanjan commented on September 23, 2024

Yeah that was my understanding of the process too - here is a screenshot of the _allow_permissions against a document

I can see the Sharepoint usernames I'm expecting, but they also have these other permissions (circled in red)

image

Where do these permissions come from, and is it expected that all my users would have Connector Owner and therefore be able to see all the documents?

from enterprise-search-sharepoint-server-connector.

praveen-elastic avatar praveen-elastic commented on September 23, 2024

These are default groups created in your SharePoint.
Permissions in SharePoint are assigned to users via groups.
I have attached an image which shows the Permissions assigned to a SharePoint library for a site-collection named: 'Enterprise Search'
image

from enterprise-search-sharepoint-server-connector.

catmanjan avatar catmanjan commented on September 23, 2024

Ah I see, so it makes sense that all the documents under this site would have this as a required permission, thanks

from enterprise-search-sharepoint-server-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.