Service Users
  • 06 Dec 2024
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Service Users

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

When using a service user to execute administration commands, it is not necessary to perform an explicit login operation to acquire a session identifier (sessionID).

Instead, the service user’s credentials need to be put into the session identifier (sessionID) for each command. This can be achieved by creating an instance of AdministrationSessionStorage and configure it by calling createAndStoreSession() with the service user’s credentials as sessionID. This AdministrationSessionStorage instance can then be directly used to initialize the various handler helper classes.


AdministrationSessionStorage sessionStorage = new AdministrationSessionStorage();

sessionStorage.createAndStoreSession("Apikey serviceUserId:1234567890abcdef", "{soapURL}");

UserHandler userHandler = new UserHandler(sessionStorage);

userHandler.create(…);

Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle