Yvand / LDAPCP

A claims provider to connect SharePoint Subscription / 2019 / 2016 with Active Directory and LDAP directories in federated authentication
https://ldapcp.com
Apache License 2.0
57 stars 25 forks source link

LDAPCP not being queried when assigning targeted audiences (navigation, list items, etc) #184

Closed WEIGLBRC-Taylor closed 1 year ago

WEIGLBRC-Taylor commented 1 year ago

We have LDAPCP set up on our single server sharepoint 2019 farm with augmentation turned on.

I have found that LDAPCP is not being queried when attempting to assign targeted audiences to navigation, list items, or anyone targeted audiences are selected.

I realized that LDAPCP might not be working because the search wasn't returning any groups with "(Role)" prepended. I then ran thru the troubleshooting steps here to collect the LDAPCP logs. I set the verbosity of the logs to VerboseEx, attempted to set a targeted audience on my navigation items, pulled the LDAPCP logs for the last 5 minutes, and didn't see my search anywhere in the logs.

Is there any way we can get LDAPCP to perform searches and return groups for targeted audiences?

Yvand commented 1 year ago

Hi @WEIGLBRC-Taylor, the audiences rely on data in the User Profile service, they do not use claims providers

WEIGLBRC-Taylor commented 1 year ago

I appreciate the prompt reply! I ended up making sharepoint groups and adding roles from LDAPCP to those groups. I then used the sharepoint groups as my target audiences. Not an ideal solution, but it works :D

Also, thanks for making LDAPCP, it's really great!

Yvand commented 1 year ago

@WEIGLBRC-Taylor it is actually a pretty elegant solution, I forgot that audiences can use SP groups, thanks for sharing!