org.freedesktop.PolicyKit1.AuthorityManager Interface

org.freedesktop.PolicyKit1.AuthorityManager Interface — Manage an Authority

Methods

Structure    Authorization

EnumerateUsers          (OUT Array<Identity>       users)
EnumerateGroups         (OUT Array<Identity>       groups)
AddAuthorization        (IN  Identity              identity,
                         IN  Authorization         authorization)
RemoveAuthorization     (IN  Identity              identity,
                         IN  Authorization         authorization)
EnumerateAuthorizations (IN  Identity              identity,
                         OUT Array<Authorization>  authorizations)
    

Description

This D-Bus interface may be implemented by the /org/freedesktop/PoliycKit1/Authority object on the well-known name org.freedesktop.PolicyKit1 on the system message bus.

Structures

The Authorization Structure

{
  String  action_id,
  Subject subject,
  Boolean is_negative
}
          

This struct describes an authorization belonging to an Identity.

String action_id

Identifier for the action the authorization is for.

Subject subject

The Subject that the authorization applies to.

Boolean is_negative

Whether the authorization is negative.

Method Details

EnumerateUsers ()

EnumerateUsers (OUT Array<Identity>  users)
    

Enumerate all users known to the authority.

OUT Array<Identity> users:

An array of Identity structs.


EnumerateGroups ()

EnumerateGroups (OUT Array<Identity>  groups)
    

Enumerate all groups known to the authority.

OUT Array<Identity> groups:

An array of Identity structs.


AddAuthorization ()

AddAuthorization (IN  Identity       identity,
                  IN  Authorization  authorization)
    

Add an authorization to identity.

IN Identity identity:

The Identity to add authorization to.

IN Authorization authorization:

The Authorization to add to identity.


RemoveAuthorization ()

RemoveAuthorization (IN  Identity       identity,
                     IN  Authorization  authorization)
    

Remove an authorization from identity.

IN Identity identity:

The Identity to remove authorization from.

IN Authorization authorization:

The Authorization to remove from identity.


EnumerateAuthorizations ()

EnumerateAuthorizations (IN  Identity              identity,
                         OUT Array<Authorization>  authorizations)
    

Enumerate all authorizations for identity.

IN Identity identity:

An Identity to enumerate authorizations for.

OUT Array<Authorization> authorizations:

An array of Authorization structs for identity.