Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
AleLovaz82
Collaborator
Collaborator
Jump to solution

is there a way to see active directory domain of a user into an access-role object?

Hi
I'm using access-role to grant permission to users from different domains ( let's say A and B )

in one access-rule object I can have users from both the domain ,is possible to have the domain ( or the full CN of the user ) as result of a mgmt_cli query ?


this is what I obtain from a single query

mgmt_cli -r true -d CMA1 show access-role name AR_VPNGROUP1 --format json

{
"uid" : "0d1d5680-6da9-4c3d-a72e-add559bd5c17",
"name" : "ad_user_PIPPO_PAPERINO",
"type" : "CpmiAdUser",
"domain" : {
"uid" : "699e0f39-3da1-6e4d-8ccf-2160acce691e",
"name" : "CMA1",
"domain-type" : "domain"
},
"icon" : "Objects/user",
"color" : "black"
}

it would be great to see in which domain is PIPPO PAPERINO or tue full CN of PIPPO PAPERINO

0 Kudos
1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin

If more details can be returned, they would be included by adding details-level full to the query.
It's also possible you might get some details by showing the details of the object itself.
Because the underlying object is not API friendly, you'll need to use the generic-object API to query it (e.g. show generic-object uid 0d1d5680-6da9-4c3d-a72e-add559bd5c17).

View solution in original post

0 Kudos
2 Replies
PhoneBoy
Admin
Admin

If more details can be returned, they would be included by adding details-level full to the query.
It's also possible you might get some details by showing the details of the object itself.
Because the underlying object is not API friendly, you'll need to use the generic-object API to query it (e.g. show generic-object uid 0d1d5680-6da9-4c3d-a72e-add559bd5c17).

0 Kudos
AleLovaz82
Collaborator
Collaborator

details-level full did the trick! now i've to play with jq and bash to extact what i need 🙂
Thx

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 18 Mar 2025 @ 09:30 AM (EET)

    CheckMates Live Greece

    Tue 25 Mar 2025 @ 12:00 PM (MDT)

    Salt Lake City: CPX 2025 Recap

    Tue 08 Apr 2025 @ 12:00 PM (MDT)

    Denver: CPX 2025 Recap
    CheckMates Events