OCSInventory-NG / OCSInventory-ocsreports

Webconsole for OCS Inventory NG
https://www.ocsinventory-ng.org
GNU General Public License v2.0
226 stars 149 forks source link

IsAdmin ? fetaure request #1054

Open sokatra opened 3 years ago

sokatra commented 3 years ago

Is your feature request related to a problem? Please describe. Hy, i wanted to see the group membership of local group adminstrators for security reasons. OCSInventory should be able to compare if the logged in user is an administrator! or the group membership should be displayed and the membership should be searchable in ocs-inventory.

Describe the solution you'd like Some user have adminrights -- bit i really don't know exactly which domain user is an local administrator

Describe alternatives you've considered i wrote a script which export all group members from group "administrators" to an smb share .. this script will be executed on every computer. so a have all the group memberships after a while. But this is not very comfortable .. because i don't see the group membership on ocs-inventory-ng. I wrote another script which will be executed on any computer .. this script identifies current logged in user .. and compares the logged in user with the local administrator group .. if the user is in this group .. i exit with a special exit code .. if not .. i exit with another code. So i can search for this error code in ocs-inventory to get all domain users with admin rights.

steffmeister commented 1 year ago

Hi, this issue is quite old but maybe someone finds this interesting... this should be exactly what you wanted: https://github.com/steffmeister/ocs-extension-szlocalmemberships