How to get more information of the user ?

Estimated reading: 3 minutes 317 views

Visual-Guard Identity server provide user information method.

Url: https://<your VG Identity Server>/connect/userinfo

This method return many information like VGToken, user information, profile of the user, roles, permissions and etc…

Inside of your get http you need insert Authorization with bearer <SecurityToken>

Result of the request

{
    "vgToken": "EF4ECC087AE7F56C4E6E66E24782079635F8A805E6565CFDED808F8902559BD8F6F95C207FFC690695835F96062201F3D02BE09C981D55169134AD1A70C0FDB1",
    "vgUserId": "admin",
    "vgApplications": "Visual Guard Console,Angular demo,AddressBookV3,Appeon_salesdemo,PB_Salesdemo,WSL_VGLinuxConsoleApp,WSL_VGLinuxWebApp,VG Angular",
    "vgRoles": "Auditor,Default",
    "vgPermissions": "/PowerServer/Address/CanReadAddress,/PowerServer/Customer/CanReadCustomer",
    "vgIsApproved": "True",
    "vgIsLocked": "False",
    "vgStartDate": "7/14/2020 12:00:00 AM",
    "vgEndDate": "12/31/9999 12:00:00 AM",
    "vgFirstname": "",
    "vgLastname": "",
    "vgEmail": "admin@gmail.com",
    "vgUA_City": "Paris",
    "vgUA_Salary": "1000",
    "vgUA_Height": "10.1",
    "vgUA_BirthDate": "04/06/2021 00:00:19",
    "vgUA_Married": "True",
    "vgUA_DropDownlist": "Item2",
    "vgUA_Binary": "",
    "vgUA_City2": "1234567890123456789012345678901234567890123456789012",
    "vgUA_Company": "",
    "vgUA_Country": "",
    "vgUA_Department": "",
    "vgUA_Description": "",
    "vgUA_DisplayName": "",
    "vgUA_EmailAddress": "admin@gmail.com",
    "vgUA_Fax": "",
    "vgUA_HomePhoneNumber": "",
    "vgUA_Manager": "",
    "vgUA_Middlename": "",
    "vgUA_MobileNumber": "+336655223399",
    "vgUA_Name": "",
    "vgUA_PostalZipcode": "",
    "vgUA_Title": "",
    "vgUA_Photo": "",
    "vgDevApps": "[{\"ApplicationId\":\"a9efce21-c32a-47d5-a49b-b0953f2888b9\",\"ApplicationName\":\"Visual Guard Console\"},{\"ApplicationId\":\"4395b0a5-a5f4-4fac-84e0-5e0285e92e1d\",\"ApplicationName\":\"Angular demo\"},{\"ApplicationId\":\"da9217f7-4f3b-4f64-8bc4-3237dc8a2a65\",\"ApplicationName\":\"AddressBookV3\"},{\"ApplicationId\":\"7503e1ea-212a-4903-abb6-93702214fa87\",\"ApplicationName\":\"Appeon_salesdemo\"},{\"ApplicationId\":\"6f209594-fc04-4e96-9f9f-7daf57b0fb12\",\"ApplicationName\":\"PB_Salesdemo\"},{\"ApplicationId\":\"0d988715-2570-4d99-8e92-4a9e8461efb3\",\"ApplicationName\":\"WSL_VGLinuxConsoleApp\"},{\"ApplicationId\":\"249ae96a-6599-4ebd-808b-764ee244b3fa\",\"ApplicationName\":\"WSL_VGLinuxWebApp\"},{\"ApplicationId\":\"713e30bc-130d-4ec2-94eb-8ad3032b11db\",\"ApplicationName\":\"VG Angular\"}]",
    "vgDevRoles": "[{\"Id\":\"30ebc3f1-8c0c-4b93-a8ba-d7e41e11c81d\",\"Name\":\"Auditor\",\"IsMembershipRole\":false,\"IsAdministrationRole\":false,\"IsActive\":true,\"IsContextual\":true,\"IsSharedRole\":false,\"ProfileValues\":[{\"Name\":\"RoleBoolean\",\"Id\":\"9d4625a6-5522-48c7-9f1a-4a396cf5c115\",\"Value\":\"False\",\"ValueImage\":null,\"ProfileAttributeId\":\"faa7ec69-4c67-486f-be4a-665fea29f458\",\"LastModification\":\"2021-10-13T11:42:58.58\"}],\"Description\":null,\"CanBeGrantedToUser\":false,\"CanBeGrantedToGroup\":false,\"IsDefault\":false,\"IsAnonymous\":false,\"ApplicationId\":\"00000000-0000-0000-0000-000000000000\"},{\"Id\":\"0c4857b2-69cf-438b-8c10-6c2ab1b60b98\",\"Name\":\"Default\",\"IsMembershipRole\":false,\"IsAdministrationRole\":false,\"IsActive\":true,\"IsContextual\":true,\"IsSharedRole\":false,\"ProfileValues\":[{\"Name\":\"RoleBoolean\",\"Id\":\"dd62645b-6fc0-4f77-a5d8-2450d881bb89\",\"Value\":\"False\",\"ValueImage\":null,\"ProfileAttributeId\":\"faa7ec69-4c67-486f-be4a-665fea29f458\",\"LastModification\":\"2021-10-13T10:08:13.583\"}],\"Description\":null,\"CanBeGrantedToUser\":false,\"CanBeGrantedToGroup\":false,\"IsDefault\":false,\"IsAnonymous\":false,\"ApplicationId\":\"00000000-0000-0000-0000-000000000000\"}]",
    "vgDevPermissions": "[{\"Id\":\"55fb7f63-2ffc-4025-a238-265d20013d82\",\"FolderId\":\"774a0986-3d26-4cb3-975d-b53fa2ccf40b\",\"Name\":\"CanReadAddress\",\"FullName\":\"/PowerServer/Address/CanReadAddress\",\"Description\":\"\",\"Attributes\":[]},{\"Id\":\"6c57b68e-afbd-4667-a8c8-0b4b2a288e65\",\"FolderId\":\"cf7d7117-3180-4fd0-8cb8-109c7e6a10ab\",\"Name\":\"CanReadCustomer\",\"FullName\":\"/PowerServer/Customer/CanReadCustomer\",\"Description\":\"\",\"Attributes\":[]}]",
    "sub": "admin"
}