Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"permission denied: need adequate admin token" issue in Zimbra 9.0.0_ZEXTRAS_20210811 (build 20210830124411) | Postman #52

Open
0ankitcodes1 opened this issue Apr 28, 2022 · 0 comments

Comments

@0ankitcodes1
Copy link

This is the request that I am sending to zimbra server. And I am using postman for testing this

This is zimbra " Zimbra 9.0.0_ZEXTRAS_20210811 (build 20210830124411) " that I am running in server

I have generate authToken using a username which as administrative access.

Can anyone have solution to this problem?

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Header>
      <context xmlns="urn:zimbra">
         <authToken>0_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</authToken>
      </context>
   </soap:Header>
   <soap:Body>
        <CreateAccountRequest xmlns="urn:zimbraAdmin" name="testuser@example.com">
            <a n="displayName">Test User</a>
            <password>testpassword</password>
        </CreateAccountRequest>
   </soap:Body>
</soap:Envelope>

This is the error that I am getting

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <context xmlns="urn:zimbra">
            <change token="26999"/>
        </context>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <soap:Code>
                <soap:Value>soap:Sender</soap:Value>
            </soap:Code>
            <soap:Reason>
                <soap:Text>permission denied: need adequate admin token</soap:Text>
            </soap:Reason>
            <soap:Detail>
                <Error xmlns="urn:zimbra">
                    <Code>service.PERM_DENIED</Code>
                    <Trace>qtp195615004-132:1651166999211:fedd1b5adb872a47</Trace>
                </Error>
            </soap:Detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant