A.1.7 REALM_ROLE_MAPPING_CREATE
M-CNCC IAM UI- cncc Realm- Assign Role to the User
Figure -8 Assign Role to user

M-CNCC IAM Kc
Logs:
{"timestamp":"2025-11-27T15:07:51.038041412Z","sequence":2622,"loggerClassName":"org.jboss.logging.Logger","loggerName":"org.keycloak.events","level":"DEBUG","message":"operationType=\"CREATE\", realmId=\"master\", realmName=\"master\", clientId=\"6d475927-19a8-4082-a9f4-8d6b68afbb1a\", userId=\"acc21615-964a-4055-8c20-fb2705bd641b\", ipAddress=\"10.75.213.184\", resourceType=\"REALM_ROLE_MAPPING\", resourcePath=\"users/ce2362ff-5fd7-4596-8846-e6a46be0819f/role-mappings/realm\"","threadName":"executor-thread-92","threadId":162,"mdc":{},"ndc":"","hostName":"cncc-iam","processName":"/opt/java/jre/bin/java","processId":571}M-CNCC IAM Ingress Gateway logs
SECURITY- Request
log:
{
"instant": {
"epochSecond": 1764256071,
"nanoOfSecond": 12758028
},
"thread": "igw-app-thread16",
"level": "INFO",
"loggerName": "ocpm.cne.gateway.cncc.filters.CnccLoggingFilter",
"message": {
"logType": "SECURITY",
"type": "REQUEST",
"operationType": "POST",
"userId": "acc21615-964a-4055-8c20-fb2705bd641b",
"username": "admin",
"remoteAddress": "xx.xx.xx.xx:xxxxx",
"localAddress": "xx.xx.xx.xx:xxxx",
"resourcePath": "/cncc/auth/admin/realms/cncc/users/ce2362ff-5fd7-4596-8846-e6a46be0819f/role-mappings/realm",
"scheme": "http",
"queryParams": {},
"headers": {
"Origin": "http://xx.xx.xx.xx:30085",
"Cookie": "{masked}",
"Connection": "keep-alive",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36",
"uuidToken": "db1864a7-cf5b-470d-bb59-5adb0381c7bc",
"Host": "10.75.213.184:30085",
"Accept-Encoding": "gzip, deflate",
"svcName": "cncc-iam-kc-http.cncc.svc.cluster.local",
"ocLogId": "1764256071010_96_cncc-iam-ingress-gateway-85d6d57584-wt9zk",
"accept": "application/json, text/plain, */*",
"sbi-timer-publish-headers": "false",
"authorization": "{masked}",
"content-type": "application/json",
"Accept-Language": "en-US,en;q=0.9",
"Content-Length": "198",
"sbi-timer-feature": "false"
},
"payload": "[{\"id\":\"fc5006e0-3927-4034-a01f-af70d779f1f8\",\"name\":\"ADMIN\",\"description\":\"Has access to all NF resources and can perform CRUD operations\",\"composite\":true,\"clientRole\":false,\"containerId\":\"cncc\"}]",
"authenticationType": "UNKNOWN"
},
"endOfBatch": false,
"loggerFqcn": "org.apache.logging.log4j.internal.DefaultLogBuilder",
"threadId": 132,
"threadPriority": 5,
"messageTimestamp": "2025-11-27T15:07:51.012+0000",
"processId": "1",
"ingressTxId": "ingress-tx-288142735",
"pod": "cncc-iam-ingress-gateway-85d6d57584-wt9zk",
"ocLogId": "1764256071010_96_cncc-iam-ingress-gateway-85d6d57584-wt9zk",
"instanceType": "prod",
"xRequestId": "-"
}SECURITY- Response
log:
{
"instant": {
"epochSecond": 1764256071,
"nanoOfSecond": 43259305
},
"thread": "igw-app-thread13",
"level": "INFO",
"loggerName": "ocpm.cne.gateway.cncc.filters.CnccLoggingFilter",
"message": {
"logType": "SECURITY",
"type": "RESPONSE",
"operationType": "POST",
"userId": "acc21615-964a-4055-8c20-fb2705bd641b",
"username": "admin",
"resourcePath": "/cncc/auth/admin/realms/cncc/users/ce2362ff-5fd7-4596-8846-e6a46be0819f/role-mappings/realm",
"scheme": "http",
"headers": {
"Referrer-Policy": "no-referrer",
"X-Frame-Options": "SAMEORIGIN",
"Access-Control-Expose-Headers": "Location",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"transfer-encoding": "chunked",
"Access-Control-Allow-Origin": "http://10.75.213.184:30085",
"Access-Control-Allow-Credentials": "true",
"X-Content-Type-Options": "nosniff",
"RequestMethod": "POST",
"NettyLatency": "1764256071010"
},
"payload": {},
"authenticationType": "UNKNOWN",
"status": "204 NO_CONTENT"
},
"endOfBatch": false,
"loggerFqcn": "org.apache.logging.log4j.internal.DefaultLogBuilder",
"threadId": 129,
"threadPriority": 5,
"messageTimestamp": "2025-11-27T15:07:51.043+0000",
"processId": "1",
"ingressTxId": "ingress-tx-2129472853",
"pod": "cncc-iam-ingress-gateway-85d6d57584-wt9zk",
"ocLogId": "-",
"instanceType": "prod",
"xRequestId": "-"
}Note:
Similar logs will also be observed for the cncc realm.
Parent topic: CNC Console UI Event Logs