Query Sub-user

Last updated: 2020-06-05 19:35:04

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CAM API 3.0 which is standardized and faster.

    API Description

    This API (GetUser) is used to query a sub-user.

    Request domain name:

    cam.api.qcloud.com

    Input Parameters

    The following request parameter list only provides API request parameters. Other parameters can be found in Common Request Parameters.

    Parameter Name Type Required Description
    name string Yes Sub-user name

    Output Parameters

    Parameter Name Type Description
    uin string Sub-user ID
    name string Sub-user name
    uid string Sub-user UID
    remark string Remarks for a sub-user
    consoleLogin int Whether a sub-user is allowed to log in to console

    Example

    Input

    https://cam.api.qcloud.com/v2/index.php
    ?name=testName
    &SignatureMethod=HmacSHA256
    &Action=GetUser
    &Region=gz
    &SecretId=AKIDWwGVed95Zu693ltdoopjcKrDct20DKky
    &Nonce=23207
    &Timestamp=1506398326
    &RequestClient=SDK_PHP_1.1
    &Signature=VuPUIgv4nQG6h83dECMIMzuiRAr2rnNwSOzvuD0wb4Q%3D

    Output

    {
        "code": 0,
        "message": "",
        "codeDesc": "Success",
        "data": {
            "uin": "90881234151",
            "name": "testName",
            "uid": "1113",
            "remakr": "testRemark",
            "consoleLogin": 1,
        }
    }

    Error Codes

    For more information, please see Error Codes.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help