blob: 331148b3a3e3ec8c1e8c12a1d34e32e58b7c803b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
<h2 class="div"><a name="createUser"></a>createUser</h2>
<p>
<code>http://your-server/rest/createUser.view</code>
<br>Since <a href="#versions">1.1.0</a>
</p>
<p>
Creates a new Subsonic user, using the following parameters:
</p>
<table width="100%" class="bottomspace">
<tr>
<th class="param-heading">Parameter</th>
<th class="param-heading">Required</th>
<th class="param-heading">Default</th>
<th class="param-heading">Comment</th>
</tr>
<tr class="table-altrow">
<td><code>username</code></td>
<td>Yes</td>
<td></td>
<td>The name of the new user.</td>
</tr>
<tr>
<td><code>password</code></td>
<td>Yes</td>
<td></td>
<td>The password of the new user, either in clear text of hex-encoded (see above).</td>
</tr>
<tr class="table-altrow">
<td><code>email</code></td>
<td>Yes</td>
<td></td>
<td>The email address of the new user.</td>
</tr>
<tr>
<td><code>ldapAuthenticated</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is authenicated in LDAP.</td>
</tr>
<tr class="table-altrow">
<td><code>adminRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is administrator.</td>
</tr>
<tr>
<td><code>settingsRole</code></td>
<td>No</td>
<td>true</td>
<td>Whether the user is allowed to change settings and password.</td>
</tr>
<tr class="table-altrow">
<td><code>streamRole</code></td>
<td>No</td>
<td>true</td>
<td>Whether the user is allowed to play files.</td>
</tr>
<tr>
<td><code>jukeboxRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is allowed to play files in jukebox mode.</td>
</tr>
<tr class="table-altrow">
<td><code>downloadRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is allowed to download files.</td>
</tr>
<tr>
<td><code>uploadRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is allowed to upload files.</td>
</tr>
<tr class="table-altrow">
<td><code>playlistRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is allowed to create and delete playlists. Since 1.8.0, changing this role has no effect.</td>
</tr>
<tr>
<td><code>coverArtRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is allowed to change cover art and tags.</td>
</tr>
<tr class="table-altrow">
<td><code>commentRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is allowed to create and edit comments and ratings.</td>
</tr>
<tr>
<td><code>podcastRole</code></td>
<td>No</td>
<td>false</td>
<td>Whether the user is allowed to administrate Podcasts.</td>
</tr>
<tr class="table-altrow">
<td><code>shareRole</code></td>
<td>No</td>
<td>false</td>
<td>(Since <a href="#versions">1.8.0</a>)Whether the user is allowed to share files with anyone.</td>
</tr>
</table>
<p>
Returns an empty <code><subsonic-response></code> element on success.
</p>
|