Hi,
Currently userService.createUser() supports creating only a locally authenticated user. Can it be extended to support creating Federated users as well ?
Please do the needful.
The supporting usecase for us :
- we are migrating content from another source into clearspace
- we would like to preserve the Original Author of the document
- Users are authenticated with a SSO scheme (federated users)
- Our target clearspace instance is going to get created anew and these authors (users)
will not exist in there
- So, we would like to create these users apriori and mark them as federated
- Then use the documentService methods to migrate the document and specify the
corresponding user as the author
Please suggest if there are other ways to solve this as well.
Best Regards,
-senthil
Hey Senthil,
The best way that I can think of to achieve this would be to use the webservices to create these users and then do a mass database query to update all of the selected users to be federated:
UPDATE jiveUser SET federated = 1 WHERE creationdate > 123456
Where 123456 is the time that you started the user import. Another way to do this would be to roll your own webservice into a plugin and then copy the functionality of the createUser method but with the ability to specify the federated flag. Hope that helps!
-Todd
Hi Todd,
Thanks for the reply and pointer to a SQL solution.
One request though :
even if createUser() does not support setting federated attribute, updateUser() may be a correct place.
This would require extending the User type template as documented in
to include echoing the federated attribute. But thinking about it some more, createUser may be the right place.
Anyways, please file a request if you deem fit.
Please close this thread.
Best Regards,
-senthil
Hey Senthil,
You're welcome. I think that either create or update should work (although if one has it they should probably both have it). I will pass this request along. Good luck with your import. Thanks!
-Todd
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us