Why would the management client say no access to cardholders

I’m debugging my access control plugin and can see the milestone management client calling the function SearchCredentialHolders which is in this case returning at least one credential. But the tab says “there is no access to cardholders…” Any idea what to look for?

See attached screenshot.

The event server logs don’t show anything that could explain this.

logs look like this:

2021-01-22 11:33:32 PM UTC-08:00 Info TransactServiceHost Transact web services started.

2021-01-22 11:33:32 PM UTC-08:00 Info XPCORuleSystemManager Done updating actions from Access control action provider.

2021-01-22 11:33:32 PM UTC-08:00 Info XPCORuleSystemManager XPCO rule config initial load complete.

2021-01-22 11:33:32 PM UTC-08:00 Info ActionWebService Action web service started

2021-01-22 11:33:32 PM UTC-08:00 Info EventNotificationWebService Receive event web service started

2021-01-22 11:33:32 PM UTC-08:00 Info GisMapEnvironment Smart map started.

2021-01-22 11:33:32 PM UTC-08:00 Info GisMapWebService Smart map web service started.

2021-01-22 11:33:32 PM UTC-08:00 Info Server Event Server startup sequence completed.

2021-01-22 11:33:33 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event sources from Milestone XProtect Transact.

2021-01-22 11:33:33 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event types and 1 event groups from Milestone XProtect Transact.

2021-01-22 11:33:33 PM UTC-08:00 Info XPCORuleSystemManager Done updating event types from Milestone XProtect Transact.

2021-01-22 11:33:33 PM UTC-08:00 Info XPCORuleSystemManager Done updating event sources from Milestone XProtect Transact.

2021-01-22 11:33:34 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event types and 0 event groups from Generic Events.

2021-01-22 11:33:34 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event sources from Generic Events.

2021-01-22 11:33:34 PM UTC-08:00 Info XPCORuleSystemManager Done updating event types from Generic Events.

2021-01-22 11:33:34 PM UTC-08:00 Info XPCORuleSystemManager Done updating event sources from Generic Events.

2021-01-22 11:33:35 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event types and 1 event groups from Analytics Events.

2021-01-22 11:33:35 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event sources from Analytics Events.

2021-01-22 11:33:35 PM UTC-08:00 Info XPCORuleSystemManager Done updating event types from Analytics Events.

2021-01-22 11:33:35 PM UTC-08:00 Info XPCORuleSystemManager Done updating event sources from Analytics Events.

2021-01-22 11:33:36 PM UTC-08:00 Info XPCORuleSystemManager Updating 8 event types and 2 event groups from Access control event type provider.

2021-01-22 11:33:36 PM UTC-08:00 Info XPCORuleSystemManager Updating 31 event sources from Access control source provider.

2021-01-22 11:33:36 PM UTC-08:00 Info XPCORuleSystemManager Done updating event types from Access control event type provider.

2021-01-22 11:33:36 PM UTC-08:00 Info XPCORuleSystemManager Updating 3 actions from Access control action provider.

2021-01-22 11:33:36 PM UTC-08:00 Info XPCORuleSystemManager Done updating actions from Access control action provider.

2021-01-22 11:33:37 PM UTC-08:00 Info XPCORuleSystemManager Done updating event sources from Access control source provider.

2021-01-22 11:33:37 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event sources from Milestone XProtect Transact.

2021-01-22 11:33:37 PM UTC-08:00 Info XPCORuleSystemManager Updating 0 event types and 1 event groups from Milestone XProtect Transact.

2021-01-22 11:33:37 PM UTC-08:00 Info XPCORuleSystemManager Done updating event types from Milestone XProtect Transact.

2021-01-22 11:33:37 PM UTC-08:00 Info XPCORuleSystemManager Done updating event sources from Milestone XProtect Transact.

2021-01-22 11:34:11 PM UTC-08:00 Info AccessControlManager Access control license updated.

2021-01-22 11:34:11 PM UTC-08:00 Info AccessControlSystem Access control system configuration updated: localvel (04e6eab9-7672-4e62-a5f7-9f1ce9b5c900)

2021-01-22 11:34:11 PM UTC-08:00 Info XPCORuleSystemManager Updating 3 actions from Access control action provider.

2021-01-22 11:34:11 PM UTC-08:00 Info XPCORuleSystemManager Updating 8 event types and 2 event groups from Access control event type provider.

2021-01-22 11:34:11 PM UTC-08:00 Info XPCORuleSystemManager Updating 31 event sources from Access control source provider.

2021-01-22 11:34:11 PM UTC-08:00 Info XPCORuleSystemManager Done updating event sources from Access control source provider.

2021-01-22 11:34:11 PM UTC-08:00 Info XPCORuleSystemManager Done updating event types from Access control event type provider.

2021-01-22 11:34:11 PM UTC-08:00 Info XPCORuleSystemManager Done updating actions from Access control action provider.

2021-01-22 11:34:11 PM UTC-08:00 Info QueueConsumer PCP:: Thread[00001#0] Added

source code inside the Search method:

        searchResult.Add(new ACCredentialHolderSearchResult(c.CredentialID.ToString(), $"{p.FirstName} {p.LastName}",new string\[\] { ""}));

return new ACCredentialHolderSearchResults(searchResult, partialResult);

By the way, its not clear what the possible roles should be here so I left it a blank string…could that be causing this problem?

Make sure that you set CredentialHolderSearchSupported property to true. You can see how the property should be set in DemoAccessControlPluign sample, CredentialHolderManager class.

FYI) There is a sample code “SearchCredentialHolders” method in CredentialHolderManager.cs in DemoAccessControlPlugin sample, please explore it regarding the roles.

Thank you.

i found it in the sample code. It was defaulting to true in the sample code, but the pre-generated class was defaulting to false. I didn’t realize the default changed. Its working now :slight_smile: