Device License from Smart Client

How can i get number of device licenses from the smart client? i can view it using the following code on the management client

ManagementServer ms = new ManagementServer(EnvironmentManager.Instance.MasterSite);
var licList = ms.LicenseInformationFolder.LicenseInformations.FirstOrDefault().LicenseOverviewAllFolder.LicenseOverviewAllChildItems;
                

but on the client side LicenseOverviewAllFolder is coming as null.

One possible cause, you cannot get license information if you are not a administrator. Please test with a user that belong to the administrator’s role.

When you are in the Management Client you cannot test without using a user belonging to the Administrator’s role, in the Smart Client you can in general use a user that is not administrator but not for retrieving this information.

It is an admin account.

I think i found the issue, It work fine when i connect the management server with the same version of smart client (2024R2) and when i connect with 2023R3 smart client with 2024R2 management server its giving me null value. I need to find some work around. Thanks