Details
Description
1. Created user and role
`TAF-user-5ltoh`,`TAF-role-7azds`
2. Granted 'CREATE LINK' privilege to user and role
GRANT CREATE LINK TO `TAF-user-5ltoh`,`TAF-role-7azds`;
|
[
|
{
|
"Privilege": { |
"PrivilegeId": "120b0b40-8066-4b3f-bbb9-f6a7c60be7be", |
"Grantor": "Administrator", |
"Grantee": "TAF-user-5ltoh", |
"GranteeUuid": "aa6e90b2-7919-4e03-ae3e-bec8071d5b3c", |
"GranteeType": "USER", |
"Privilege": "CREATE", |
"ObjectType": "LINK", |
"Timestamp": "Tue Apr 23 00:04:26 PDT 2024" |
}
|
}
|
]
|
3. Tried to create a remote link
curl -v -u TAF-user-5ltoh:PLE4RBCs5wFQ \
|
-X POST \
|
"http://172.23.96.168:8095/analytics/link/Default/myCbLink" \ |
-d type=couchbase \
|
-d hostname=172.23.105.206 \ |
-d encryption=none \
|
--data-urlencode username=Administrator \
|
--data-urlencode password=password
|
But I get the following error
{"errors":[{"code":20004,"msg":"Access denied: user lacks necessary permission(s) to access resource"}],"status":"errors"}% |
Same issue for when I try to drop links as well.
Please note that I am able to create/drop links with necessary permissions through DDL statements. This issue is only for analytics link rest api's