This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to retrieve custom attribute using SPML

 Hello,

I am having issues with pulling custom AD and virtual attributes while using SPML provider to search user even tough I specifically request them in the attribute section. Any guidance is appreciated.. I do not want to stand up a custom webservice, rather use SPML provider..

thanks.

  • Hey! Have you tried adding the custom attribute to the SPML schema? Check out the KB below for some guidance:

    support.oneidentity.com/.../88107
  • Nick, I am not getting any error.. it just does not return a value.. here is my sample config file.

    <configuration xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema" xmlns="urn:quest:names:SPMLProvider">
    <service>localhost</service>
    <adsiProvider>EDMS</adsiProvider>
    <schemaFile>SPMLSchema.Config</schemaFile>
    <capabilities>
    <search>
    <defaultMaxSelect>1000</defaultMaxSelect>
    <pageSize>25</pageSize>
    </search>
    <password>
    <appliesTo>
    <class>user</class>
    </appliesTo>
    </password>
    <suspend>
    <appliesTo>
    <class>user</class>
    </appliesTo>
    <suspendAction>disable</suspendAction>
    </suspend>
    </capabilities>
    <checkOutput>false</checkOutput>
    </configuration>
  • opps. wrong file.. I did locate the schema file but did not find any tags where I specify the attribute to include in the return set..

    <objectClassDefinition name="user">
    <memberAttributes>
    <attributeDefinitionReference name="cn" required="true" />
    <attributeDefinitionReference name="objectClass" required="true" />
    <attributeDefinitionReference name="objectCategory" required="false" />
    <attributeDefinitionReference name="objectGUID" required="true" />
    ----------------------------------
    I added the attribute that I want search to return here and set required = false but it still does not return any value..
  • Specifically, you will want to look at the SPMLSchema.Config file. The file you linked above is likely the SPML.config file.

    There you should see different sections for each object class. Assuming your attributes are User attributes, you will need to add a line in that section for the custom attributes you are trying to request.
  • Nick.. Thanks for your help. Its working now.. I will try other attributes as well...