Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A api
  • Project information
    • Project information
    • Activity
    • Members
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • ironapi
  • api
  • Wiki
  • Api
  • User Administration

Last edited by Andrea Pavlovic Dec 13, 2021
Page history
This is an old version of this page. You can view the most recent version or browse the history.

User Administration

  • Listing Users
  • Creating and Editing Users
  • Changing Passwords
  • List Users with a certain agenda
  • List Users with a certain assignment

Listing Users

POST /data/system/client/query

Creating and Editing Users

If available in the universe (i.e. the logged in user has permission to create users):

POST /data/system/client/transitions/create { "first_name":"Test First", "last_name":"Test Last", "login_name":"test_user_login_name", "password":"super secret", "language":2, "password_validation_period":null, "locked":false, "number_of_unsuccessfull_login_attempts":null, "email":"test@email.com" }

Changing Passwords

See Changing-Passwords

List Users with a certain agenda

POST /data/system/client/query

{
  "conds" : {"agenda.name" : "admin"},
  "attrs" : {"join":{"system__assignment__assigned_client" : "agenda"}}
}

or

POST /data/system/assignment/query

{
  "conds" : {"agenda.name" : "admin"},
  "attrs" : {"join":"agenda"}
}

or

{
  "conds" : {"agenda.name" : "admin"},
  "attrs" : {"join":"agenda", "prefetch" : "assigned_client"}
}

List Users with a certain assignment

In this example, the assignment is bound on core.unit, the agenda is called "site_admin".

POST /data/assignment/core_unit/query

{
  "conds" : {"agenda.name" : "site_admin"},
  "attrs" : {"join" : "agenda"}
}
Clone repository
  • API
    • Available Endpoints
    • Changing Passwords
    • Form Input Types
    • Introduction
    • Logout
    • Plugins
    • Queries
    • Queries
      • Attributes
      • Context
      • Query Examples
      • Query Search Options
      • Referenced Instances
      • Saved Queries
    • Schema_Changes
    • Storing Files
View All Pages