the AD Auth plugin has a line in the conf
$conf['plugin']['authad']['additional'] = 'title,description,department';
is there any way of accessing this additional information?
E.g. I'd like to tag pages using the users' roles so that I can present a list of pages relevant to them on their own user page using syntax such as
====== Documents my role is tagged in ======
The following list of documents have my role in the tags.
{{topic>:?manager}}
where manager is the role tag
This way when the person's role changes I don't have to retag all the pages which might not be as simple as search and replace if users have multiple roles (eg //team leader// and //technical manager// roles might be tagged in different pages. If a page is tagged with a username where the user has both roles it would be ambiguous which role the page refers to.
I'd build their user page from a template using placeholders such as this:
====== Documents I'm tagged in ======
The following list of documents have my name in the tags.
{{topic>:?@USER@}}
====== Documents my role is tagged in ======
The following list of documents have my role in the tags.
{{topic>:?@USER.ROLE@}}
but I'm not sure where to start looking.
One option I did consider was to set up a global struct schema that stores their usernames and roles but that's a duplication of information from AD that would need managing...
I've looked in the code and found that these values are placed in an array called info, using the value name from AD as the key which seems a bit risky if the value brought from AD has the same name as an existing key. AD Groups appear to be added to the info array as sub keys of info['grp'][] .
Any tips appreciated.