RemoteAdmin:admin update user

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "'''admin_update_user''' remotely allows to update the password and start region of users === Enabling admin_update_user === If not all functions are enabled, use admin_update_u...")
 
m
(5 intermediate revisions by 3 users not shown)
Line 73: Line 73:
 
=== Error messages ===
 
=== Error messages ===
 
''avatar_uuid'' returnes zero uuid when an error occures.
 
''avatar_uuid'' returnes zero uuid when an error occures.
 
 
== Notes ==
 
*This function is only available to Robust
 
  
  
 
== Example ==
 
== Example ==
 
=== PHP ===
 
=== PHP ===
 +
This example needs the RemoteAdmin PHP Class file available [http://code.google.com/p/opensimtools/wiki/RemoteAdminPHPClass here].
 +
 
<source lang="php">
 
<source lang="php">
 
<?php
 
<?php
Line 96: Line 94:
 
</source>
 
</source>
  
[[Category:Development]]
+
 
 +
 
 +
[[Category:RemoteAdmin]]
 +
[[Category:RemoteAdmin Commands]]

Revision as of 16:30, 24 October 2015

admin_update_user remotely allows to update the password and start region of users


Contents

Enabling admin_update_user

If not all functions are enabled, use admin_update_user to enable the function in the [RemoteAdmin] section

enabled_methods = admin_update_user,...


Parameters

Required Parameters

These parameters are required

parameter Description Values
user_firstname first name of user
user_lastname last name of user


Optional Parameters

These parameters are optional and do not need to be set

parameter Description Values
user_password password of user
start_region_x start region x position in grid, start_region_y required
start_region_y start region y position in grid, start_region_x required


Returned Parameters

Returned Parameters

These parameters are returned by Remote Admin

parameter Description Values
success true when successfull true, false
avatar_uuid new avatar uuid, zero uuid when error occured


Error messages

avatar_uuid returnes zero uuid when an error occures.


Example

PHP

This example needs the RemoteAdmin PHP Class file available here.

<?php
 
// Including the RemoteAdmin PHP class.
include('RemoteAdmin.php');
 
// Instantiate the class with parameters identical to the Python example above
$myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret');
 
// Invoke admin_update_user (multiple parameters)
$parameters = array('user_firstname' => 'John', 'user_lastname' => 'Doe', 'user_password' => 'secret');
$myRemoteAdmin->SendCommand('admin_update_user', $parameters);
?>
Personal tools
General
About This Wiki