You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-09-13 05:20:55

jamaral
Member
Registered: 2024-09-13
Posts: 2

Help Creating a User in GLPI with Associated Entity

Hello everyone, I’m having trouble creating a new user in GLPI and associating them with a specific entity. Could someone guide me through the steps required to set this up correctly? Thank you in advance for your help!
{
    "input": {
        "name": "createmailuser@teste44.com",
        "realname": "Curupira44",
        "firstname": "",
        "password": "teste123",
        "password2": "teste123",
        "email": "createmailuser@teste44.com",
        "mobile": "559976787890",
        "entities": [
            0,
            1
        ]
    }

This code creates the user in the root entity, I want to create it in another specific entity.

Offline

#2 2024-09-13 11:57:44

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,982
Website

Re: Help Creating a User in GLPI with Associated Entity

Users have no entities on their own. You need to create the user and then assign profiles (Profile_User itemtype) to them for the correct entities. You probably have an Authorization Assignment Rule which gives all new users the Self-Service profile in the Root Entity (included by default in GLPI).


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2024-09-13 16:18:12

jamaral
Member
Registered: 2024-09-13
Posts: 2

Re: Help Creating a User in GLPI with Associated Entity

Sure, could you help me update the user entity through the REST API?

Offline

Board footer

Powered by FluxBB