gpt4 book ai didi

identity - OIM 的数据库查询

转载 作者:行者123 更新时间:2023-12-02 17:21:18 26 4
gpt4 key购买 nike

  1. 数据库查询以检查用户的帐户状态
  2. 数据库查询以检查用户的授权状态
  3. 数据库查询以检查角色和访问策略映射。

如果有人有这些疑问,请告诉我?

最佳答案

  1. 帐户状态

    SELECT usr.usr_login,obj.obj_name,ost.ost_status 
    FROM orc, usr, obj, oiu, ost, obi WHERE orc.orc_key = oiu.orc_key AND oiu.usr_key = usr.usr_key AND oiu.ost_key = ost.ost_key
    AND oiu.obi_key = obi.obi_key AND obi.obj_key = obj.obj_key AND obj.obj_name='ABC' order by usr.usr_login
  2. 用户的授权状态

    select usr.usr_login,ENT_LIST.ent_display_name,
    ENT_LIST.ent_value,ENT_ASSIGN.ent_status
    from ENT_ASSIGN, usr, ENT_LIST where usr.usr_key = ent_assign.usr_key and
    ENT_LIST.ent_list_key = ENT_ASSIGN.ent_list_key
    and ENT_LIST.ent_value like 'ABC' order by usr.usr_login,ENT_DISPLAY_NAME;
  3. 角色和访问策略映射

    select pol.pol_name, poc.poc_field_value from pol, poc where poc.pol_key  = pol.pol_key AND poc.poc_field_name = 'ABC' order by pol.pol_name, poc.poc_field_value
  4. 检查分配给用户的角色

    select usr.usr_login, ugp.ugp_name from usg usg left outer join usr usr on (usg.usr_key = usr.usr_key) 
    left outer join ugp ugp on (ugp.ugp_key = usg.ugp_key)
    where ugp_name ='ABC'

关于identity - OIM 的数据库查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42486007/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com