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-06-03 23:13:33

vialcantar
Member
Registered: 2021-06-25
Posts: 2

Selecting Entity without the tree structure

Hello,

I'd like to know if there is an option in GLPi for when the user Log In the option of Entity + subentity is not automatically selected and the main Entity is selected.

For example:

user A Logs in automatically the entity selected is ExampleEntity (Tree Structure)

and I need to make that as soon as user A Logs In the only selected entity is ExampleEntity.

All users are Recursive because the need to work in multiples subentitys.


If you need more information or screenshot I would be happy to provide for clarification.


Thanks in advance.

Offline

#2 2024-06-04 11:12:51

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

Re: Selecting Entity without the tree structure

If you want a different entity to be the default, there is a "Default Entity" field in each user's form. However, for the recursive behavior, it depends on how the profiles are assigned. If at least one profile is assigned in the entity and recursive, the user will log in with that entity selected in tree/recursive mode.

Usually I would say this behavior could be worked around using a custom plugin, but I am not aware of any plugin hook that is executed after GLPI initially chooses the entity and profile to use during a login. There is "init_session", but it occurs immediately before the entities and profiles are loaded, so it would just overwrite changes made by a plugin.


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-06-04 17:14:49

vialcantar
Member
Registered: 2021-06-25
Posts: 2

Re: Selecting Entity without the tree structure

Hi cconard96,

Thanks for the quick response, there is no workaround for this behavior?.

The reason is that I would like to limit the usages of the Entity and only allow the user to work in the subentitys as Self-service, but since the Tree Structure allows the user to see the subentity categories they are able to create tickets under the Entity selecting the subentity categories.

Offline

#4 2024-06-05 11:02:35

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

Re: Selecting Entity without the tree structure

If you don't want them to have access with a profile to sub-entities, that profile shouldn't be assigned recursively.
No, there is no way to make a user start in a specific entity non-recursively when they were assigned a profile for that entity recursively.


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

Board footer

Powered by FluxBB