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 2015-07-13 16:09:29

LLM
Member
Registered: 2015-07-13
Posts: 2

Restrict User views to Assigned assets

Hello GLPI Forum,

I had moved to this Assset management system after trying to find one with LDAP integration and liked what I saw.

My issue is how to restict the View of assets to per user.

So if I have a Self-Service type user with the full interface with Read ability on Assets (computers and monitors) how can I apply a permanent filter to restrict items by username.

I only want to show the logged in user what is currently assigned to them.
I do not require any access to tickets or anything else, just assets.

Has anyone come up with a solution to this?

Thank you all in advance.

Offline

#2 2015-07-13 19:08:21

ask2me007
Member
Registered: 2010-10-03
Posts: 46

Re: Restrict User views to Assigned assets

Go to profile and in the Assets tab, select Link with items for the creation of tickets as My devices .
The user field in the Inventory list should be updated accordingly. So the user with this profile can only see the assigned items.
Hope this can resolve your problem.

Offline

#3 2015-07-13 19:20:23

LLM
Member
Registered: 2015-07-13
Posts: 2

Re: Restrict User views to Assigned assets

I did a trial with the ticket system to assign the hardware.

Would there be another way to add a permanent query to the assets page to link back to the user=$username
I'm not too familiar on the macros (if available) for GLPI.

We already use a ticketing stsem for IT related service desk and merely want to filter the result by username but at the same time prevent UserA fro seeing User B's assets.

Offline

#4 2015-07-15 17:48:07

ask2me007
Member
Registered: 2010-10-03
Posts: 46

Re: Restrict User views to Assigned assets

If you want to show all items, select all items in the  profile settings instead of mydevices. So it will show all items .
I dont know whether there is any method to do this. So wait for an experts advice

Offline

#5 2015-07-15 17:48:30

ask2me007
Member
Registered: 2010-10-03
Posts: 46

Re: Restrict User views to Assigned assets

If you want to show all items, select all items in the  profile settings instead of mydevices. So it will show all items .
I dont know whether there is any method to do this. So wait for an experts advice

Offline

#6 2017-06-16 15:25:22

niccolomeloni
Member
Registered: 2017-06-16
Posts: 5

Re: Restrict User views to Assigned assets

Hi there,

i'm using GLPI 9.1.2 and i'm trying to restrict views to assigned assets with no success.
My hope is to allow users to see only assigned assets on certain entities.
I have created a profile with only read permissions but i can't apply any filter in order to restrict items by user field.

Is there a way to fix this problem?

Thank you in advance

Offline

#7 2017-06-19 13:16:26

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Restrict User views to Assigned assets

You will can do that in a plugin with next version of GLPI (9.1.5).
I think i will put this in the behaviors plugins. But i must wait 9.1.5 release


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2017-07-20 09:10:06

niccolomeloni
Member
Registered: 2017-06-16
Posts: 5

Re: Restrict User views to Assigned assets

Hi yllen,

I saw that GLPI version 9.1.5 was released.
I have tried to install version 1.4 of behaviors plugin but i still cannot allow users to see only assigned assets on certain entities.
Could you let me know something about that feature?

Thank you,

Best regards

Offline

#9 2017-08-02 14:52:42

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Restrict User views to Assigned assets

This feature will be present in next version of behaviors plugin (https://forge.glpi-project.org/issues/5530)


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#10 2017-08-21 10:19:37

niccolomeloni
Member
Registered: 2017-06-16
Posts: 5

Re: Restrict User views to Assigned assets

Hi yllen,

i have tried with a GLPI version 9.1.6 and behaviours plugin version 1.5.0 but i can't understand if i'm wrong.
I have two entities, Root > A and Root > B.
I have two users, userA, Tech of Root > A, and userB, Tech of Root > B.
I have set true "see my asset" and "see asset of my groups".
So, i have two PCs in Root > A, one assigned to userA and the other to userB.

From user B i can't see anything on Root > A. If i grant Read-Only profile to userB on Root > A he can see all the PCs.

Can you help me if i'm wrong?

Thank you very much,

Best Regard

Offline

#11 2017-08-24 16:56:05

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Restrict User views to Assigned assets

First you must have right to Read on computer.
After, in your computer form you must have field User (see my asset) or Group (see asset of my groups) defined.


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#12 2017-08-25 08:47:49

niccolomeloni
Member
Registered: 2017-06-16
Posts: 5

Re: Restrict User views to Assigned assets

I'm sorry to disturb you again,

it is exactly what i have done but it seems not work: the software does not filter and so userB can also see PCs of other users.

Offline

#13 2017-08-28 15:15:12

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Restrict User views to Assigned assets

This option is for simple user, not for technician.
So if you can update an asset, this restriction is not applied


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#14 2017-08-28 16:25:07

niccolomeloni
Member
Registered: 2017-06-16
Posts: 5

Re: Restrict User views to Assigned assets

Ok..

I was actually hoping that a user might have technicial profile on a certain Entity and might have a readonly profile on another Entity with filter applied to his assets for that Entity.

Offline

Board footer

Powered by FluxBB