If the datastore is a database, refer to the ScriptedJDBC adapter, and if the datastore is a directory, refer to the LDAP adapter.