Zabbix Documentation 2.4

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


manual:api:reference:user:create

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:api:reference:user:create [2014/09/25 14:43]
sasha Page moved from 2.4:manual:api:reference:user:create to manual:api:reference:user:create
manual:api:reference:user:create [2019/01/28 14:49] (current)
sasha <code js> => <code java>
Line 11: Line 11:
 ''​(object/​array)''​ Users to create. ''​(object/​array)''​ Users to create.
  
-Additionally to the [[2.4:​manual:​api:​reference:​user:​object#​user|standard user properties]],​ the method accepts the following parameters.+Additionally to the [[object#​user|standard user properties]],​ the method accepts the following parameters.
  
 ^ Parameter ^ Type ^ Description ^ ^ Parameter ^ Type ^ Description ^
 | **passwd** \\ //​(required)//​ | string | User's password. | | **passwd** \\ //​(required)//​ | string | User's password. |
-| **usrgrps** \\ (required) | array | User groups to add the user to. \\ \\ The user groups must have the ''​usrgrp''​ property defined. |+| **usrgrps** \\ (required) | array | User groups to add the user to. \\ \\ The user groups must have the ''​usrgrpid''​ property defined. |
 | user_medias | array | Media to create for the user. \\ \\ The media ''​userid''​ property must not be defined. | | user_medias | array | Media to create for the user. \\ \\ The media ''​userid''​ property must not be defined. |
 ==== Return values ==== ==== Return values ====
Line 28: Line 28:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 56: Line 56:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 70: Line 70:
 ==== See also ==== ==== See also ====
  
-  * [[2.4:manual:​api:​reference:​usermedia:​object#​media|Media]] +  * [[manual:​api:​reference:​usermedia:​object#​media|Media]] 
-  * [[2.4:manual:​api:​reference:​usergroup:​object#​user_group|User group]]+  * [[manual:​api:​reference:​usergroup:​object#​user_group|User group]]
  
  
 ==== Source ==== ==== Source ====
  
-CUser::​create() in //​frontends/​php/​api/​classes/​CUser.php//​.+CUser::​create() in //​frontends/​php/​include/classes/​api/​services/​CUser.php//​.