Hi am glad to hear that your issue was resolved. But I am not sure I understand what caused it and what was the solution.
Using a read only user you are able to list layers and see the content of the layer using the API.
This is from mgmt_cli but it works in exactly the same way when using Postman.
[Expert@sms69:0]# # add admin with Read Only permissions
[Expert@sms69:0]# mgmt_cli -r true -d "System Data" -f json add administrator name "ro_user" password "vpn123" must-change-password false authentication-method "check point password" permissions-profile "Read Only All"
{
"uid" : "f69cfa69-93cc-40d0-aaf9-2a964291ebb1",
"name" : "ro_user",
"type" : "administrator",
"domain" : {
"uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
"name" : "System Data",
"domain-type" : "mds"
},
"email" : "",
"phone-number" : "",
"authentication-method" : "check point password",
"must-change-password" : false,
"permissions-profile" : {
"uid" : "f4a23218-5bb9-4880-94bb-9c06b951f195",
"name" : "Read Only All",
"type" : "PermissionRole",
"domain" : {
"uid" : "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"name" : "Check Point Data",
"domain-type" : "data domain"
}
},
"sic-name" : "",
"comments" : "",
"color" : "black",
"icon" : "General/Administrator",
"tags" : [ ],
"meta-info" : {
"lock" : "unlocked",
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1605866490731,
"iso-8601" : "2020-11-20T11:01+0100"
},
"last-modifier" : "WEB_API",
"creation-time" : {
"posix" : 1605866490731,
"iso-8601" : "2020-11-20T11:01+0100"
},
"creator" : "WEB_API"
},
"read-only" : true
}
---------------------------------------------
Time: [11:01:32] 20/11/2020
---------------------------------------------
"Publish operation" succeeded (100%)
[Expert@sms69:0]# # Show access layers with Read Only permissions
[Expert@sms69:0]# mgmt_cli -u ro_user -p vpn123 show-access-layers
access-layers:
- uid: "63b7fe60-76d2-4287-bca5-21af87337b0a"
name: "Network"
type: "access-layer"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
from: 1
to: 1
total: 1
[Expert@sms69:0]# # Show access layer network with Read Only permissions
[Expert@sms69:0]# mgmt_cli -u ro_user -p vpn123 show-access-layer name Network
uid: "63b7fe60-76d2-4287-bca5-21af87337b0a"
name: "Network"
type: "access-layer"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
shared: false
applications-and-url-filtering: false
content-awareness: false
mobile-access: false
firewall: true
implicit-cleanup-action: "drop"
comments: ""
color: "black"
icon: "ApplicationFirewall/rulebase"
tags: []
meta-info:
lock: "unlocked"
validation-state: "ok"
last-modify-time:
posix: 1579509785872
iso-8601: "2020-01-20T09:43+0100"
last-modifier: "System"
creation-time:
posix: 1579509785831
iso-8601: "2020-01-20T09:43+0100"
creator: "System"
read-only: false
[Expert@sms69:0]#
Kind Regards
Jim