Return to Jive Software

Skip navigation
2,139 Views 3 Replies Last post: Apr 30, 2009 1:42 PM by todd.west RSS
senthilv Beginner 334 posts since
Oct 23, 2008
Currently Being Moderated

Apr 30, 2009 10:53 AM

[REST WS] Support creating Federated Users in userService.createUser()

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

todd.west Jive Employee 15,926 posts since
Jul 14, 2008
Currently Being Moderated
Apr 30, 2009 1:17 PM in response to: Senthil Vaiyapuri
Re: [REST WS] Support creating Federated Users in userService.createUser()

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

todd.west Jive Employee 15,926 posts since
Jul 14, 2008
Currently Being Moderated
Apr 30, 2009 1:42 PM in response to: Senthil Vaiyapuri
Re: [REST WS] Support creating Federated Users in userService.createUser()

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

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.