Correctifs

This commit is contained in:
Jason SECULA
2025-08-26 09:35:02 +02:00
parent 0a5e780546
commit 2fa704f381
2 changed files with 7 additions and 2 deletions

View File

@ -182,8 +182,12 @@ class AirwatchDevice:
self.GroupId = device["LocationGroupId"]["Id"]["Value"]
self.Group = device["LocationGroupName"]
self.GroupUuid = device["LocationGroupId"]["Uuid"]
self.UserId = device["UserId"]["Id"]["Value"]
self.User = device["UserName"]
if(device["UserId"].get("Id") != None):
self.UserId = device["UserId"]["Id"]["Value"]
self.User = device["UserName"]
else:
self.UserId = None
self.User = None
self.UserEmail = device["UserEmailAddress"]
self.PlatformId = device["PlatformId"]["Id"]["Value"]
self.Platform = device["Platform"]