• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Plesk Api get db user why permission denied?

pasamsin

New Pleskian
I am connecting the API with the hosting username and password. If I want to list the users belonging to a database belonging to the same hosting, I get an error. If the database user does not have any database privileges, the users are listed. What is the problem? How can we correct this plesk error?

<packet>
<database>
<get-db-users>
<filter>
<db-id>11</db-id>
</filter>
</get-db-users>
</database>
</packet>


SimpleXMLElement Object ( [@attributes] => Array ( [version] => 1.6.8.0 ) [database] => SimpleXMLElement Object ( [get-db-users] => SimpleXMLElement Object ( [result] => Array ( [0] => SimpleXMLElement Object ( [status] => error [errcode] => 1006 [errtext] => Permission denied. [filter-id] => 11 [id] => 11 ) [1] => SimpleXMLElement Object ( [status] => error [errcode] => 1006 [errtext] => Permission denied. [filter-id] => 11 [id] => 13 ) ) ) ) )
 
Not with admin

In the image below, you can see 3 users.
No one has access to just one.
Access unauthorized user windo_anyaccess
In the second picture you can see the difference of the database user.

SimpleXMLElement Object
(
[@attributes] => Array
(
[version] => 1.6.8.0
)

[database] => SimpleXMLElement Object
(
[get-db-users] => SimpleXMLElement Object
(
[result] => Array
(
[0] => SimpleXMLElement Object
(
[status] => ok
[filter-id] => 20
[id] => 24
[login] => windo_kullanici
[db-id] => 20
[acl] => SimpleXMLElement Object
(
[host] => %
)

[allow-access-from] => SimpleXMLElement Object
(
)

)

[1] => SimpleXMLElement Object
(
[status] => ok
[filter-id] => 20
[id] => 25
[login] => windo_kullanici2
[db-id] => 20
[acl] => SimpleXMLElement Object
(
[host] => %
)

[allow-access-from] => SimpleXMLElement Object
(
)

)

[2] => SimpleXMLElement Object
(
[status] => error
[errcode] => 1006
[errtext] => Permission denied.
[filter-id] => 20
[id] => 27
)

)

)

)

)
 

Attachments

  • 20.JPG
    20.JPG
    44.7 KB · Views: 7
  • 21.JPG
    21.JPG
    60.5 KB · Views: 6
Back
Top