I am trying to get the current user GUID (not the Id, an integer). Making a call to
http://servername/_api/web/CurrentUser/
which would would give the Id which can in turn be used to make a call
http://contoso/_api/Web/GetUserById(1)/
to get other properties such as login name, email etc., but does not return the Guid of the user. The guid is used to compare the owner id guids on other records in the logic. The deployment is an on-prem deployment.
Any answers/suggestions/pointers in the right direction would be highly appreciated.