2
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
3
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" >
4
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
5
<interface name="org.freedesktop.Accounts">
7
<!-- ************************************************************ -->
9
<method name="ListCachedUsers">
10
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
11
<arg name="users" direction="out" type="ao">
12
<doc:doc><doc:summary>Object paths of cached users</doc:summary></doc:doc>
18
Lists users which have logged into the system locally before.
19
This is not meant to return an exhaustive list of all users.
20
It is possible for <doc:ref type="method" to="Accounts.FindUserByName">FindUserByName()</doc:ref>
21
to return a user that's not on the list.
27
<method name="FindUserById">
28
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
29
<arg name="id" direction="in" type="x">
30
<doc:doc><doc:summary>The uid to look up</doc:summary></doc:doc>
32
<arg name="user" direction="out" type="o">
33
<doc:doc><doc:summary>Object path of user</doc:summary></doc:doc>
43
<doc:error name="org.freedesktop.Accounts.Error.Failed">if no user with the given uid exists</doc:error>
48
<method name="FindUserByName">
49
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
50
<arg name="name" direction="in" type="s">
51
<doc:doc><doc:summary>The username to look up</doc:summary></doc:doc>
53
<arg name="user" direction="out" type="o">
54
<doc:doc><doc:summary>Object path of user</doc:summary></doc:doc>
60
Finds a user by its username.
64
<doc:error name="org.freedesktop.Accounts.Error.Failed">if no user with the given username exists</doc:error>
69
<method name="CreateUser">
70
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
71
<arg name="name" direction="in" type="s">
72
<doc:doc><doc:summary>The username for the new user</doc:summary></doc:doc>
74
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
75
<arg name="fullname" direction="in" type="s">
76
<doc:doc><doc:summary>The real name for the new user</doc:summary></doc:doc>
78
<arg name="user" direction="out" type="o">
79
<doc:doc><doc:summary>Object path of the new user</doc:summary></doc:doc>
81
<arg name="accountType" direction="in" type="i">
83
<doc:summary>The account type, encoded as an integer</doc:summary>
89
Creates a new user account.
92
The accountType argument can take the following values:
96
<doc:term>0</doc:term>
97
<doc:definition>Standard user</doc:definition>
100
<doc:term>1</doc:term>
101
<doc:definition>Administrator</doc:definition>
104
<doc:term>2</doc:term>
105
<doc:definition>Supervised user</doc:definition>
110
The caller needs the org.freedesktop.accounts.user-administration PolicyKit authorization.
113
<doc:error name="org.freedesktop.Accounts.Error.PermissionDenied">if the caller lacks the appropriate PolicyKit authorization</doc:error>
114
<doc:error name="org.freedesktop.Accounts.Error.Failed">if the operation failed</doc:error>
119
<method name="DeleteUser">
120
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
121
<arg name="id" direction="in" type="x">
122
<doc:doc><doc:summary>The uid to delete</doc:summary></doc:doc>
124
<arg name="removeFiles" direction="in" type="b">
125
<doc:doc><doc:summary>Whether to remove the users files</doc:summary></doc:doc>
131
Deletes a user account.
135
The caller needs the org.freedesktop.accounts.user-administration PolicyKit authorization.
138
<doc:error name="org.freedesktop.Accounts.Error.PermissionDenied">if the caller lacks the appropriate PolicyKit authorization</doc:error>
139
<doc:error name="org.freedesktop.Accounts.Error.Failed">if the operation failed</doc:error>
144
<signal name="UserAdded">
145
<arg name="user" type="o">
146
<doc:doc><doc:summary>Object path of the user that was added.</doc:summary></doc:doc>
151
Emitted when a user is added.
157
<signal name="UserDeleted">
158
<arg name="user" type="o">
159
<doc:doc><doc:summary>Object path of the user that was deleted.</doc:summary></doc:doc>
164
Emitted when a user is deleted.
170
<signal name="UserChanged">
171
<arg name="user" type="o">
172
<doc:doc><doc:summary>Object path of the user that was changed.</doc:summary></doc:doc>
177
Emitted when a user is changed.
183
<property name="DaemonVersion" type="s" access="read">
187
The version of the running daemon.