Skip navigation
TheFactoryPattern
Currently Being Moderated

Update User Password via Web Services

Feb 27, 2012 8:42 PM

Tags: #web #services #api #.net #c#

Hello. I am attempting to update the password for a user via the Rights Management web services, https://{mydomain}/soap/services/RightsManagementService?wsdl&lc_version=9.0.1 , using .NET 4.0 (C#).

 

Below is the function I have written. When I execute the code it always returns false. I have searched the documentation and forumns but have not found anything. Can someone provide any ideas on how I can successfully update a users password in LiveCycle via the exposed web services?

 

 

 

public bool UpdateUserPassword(string userName, string password)

        {

            bool result = false;

 

            WebServices.RightsManagement.UserImpl user = new WebServices.RightsManagement.UserImpl();

 

            user.userid = userName;

            user.canonicalName = userName;

            user.domainName = DefaultPolicySets.DefaultDomain;

            user.principalType = "USER";

            user.local = true;

            user.locked = false;

            user.disabled = false;

            user.system = false;

 

            Console.WriteLine(this.rmSvc.resetExternalUserPassword(user, password));

 

            return result;

        }

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points