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 2019-03-07 18:32:47

sdvroot
Member
Registered: 2017-09-19
Posts: 12

Rest API get a list of users by license name

Hi guys, could somebody help me resolve the question?
I configure some integration my on-premises Active Directory with Azure AD for synchronizing my on-premises environment with Office 365, now I can assign licenses on synchronized groups.
Then I synchronize my AD on-premises groups with GLPI groups (group License.Office 365 Enterprise E3 ), after that I create in Assets>Software - Microsoft office365 in Management>Licenses - Office 365 Enterprise E3 license, in general tab of this license I can attach my synchronized AD group(License.Office 365 Enterprise E3) !  Finally I go to User>Used items and see that license
Type              Entity      Name                                       
Licenses       Entity     Office 365 Enterprise E3       Group = License.Office 365 Enterprise E3

My question is: How can I get a list of users by license name ? Preferably using Phyton request but not necessary ) My GLPI version is 9.3.2

Offline

#2 2019-03-27 16:24:52

sdvroot
Member
Registered: 2017-09-19
Posts: 12

Re: Rest API get a list of users by license name

Someone can help with solution? How to get a used items assigned on the user?
Or how to get  list of group members...

Offline

#3 2019-03-27 16:57:53

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Rest API get a list of users by license name

you can get groups member Calling :
".../glpi/apirest.php/Group/".$groupID."/Group_User"


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

Board footer

Powered by FluxBB