sc3_query_auth_of_user

Navigation:  C++ > 权限管理接口 > 授权项 >

sc3_query_auth_of_user

Previous pageReturn to chapter overviewNext page

 

函数

在一台服务器上查询一个用户所隶属于的所有组

 int32 sc3_query_auth_of_user(

         hd3_in const char* szUserName,

         hd3_in const char* szAuthItemName,

         hd3_out int32* pnAuth

         );

参数

szUserName

   [in] 用户名称。

szAuthItemName

   [in] 授权项名称。

pnAuth

   [out] 权限值.

返回值

查询成功,返回RD_SUCCESS。查询失败返回其它错误码,见error_code.h。

说明

 

举例

示例代码参见授权项

 

参见:

sc3_add_auth_item

sc3_delete_auth_item

sc3_modify_auth_item

sc3_add_auth_item_to_group

sc3_delete_auth_tem_from_group

sc3_query_all_auth_item

sc3_query_auth_items_of_group

sc3_query_groups_of_auth_item

sc3_query_auth_of_user

©2015. All Rights Reserved.