# I always have the "Full authentication is required to access this resource" when posting a request

**URL:** <https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [June 21, 2023, 2:00pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839 "2023-06-21T14:00:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![albert.avetisyan](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@albert.avetisyan](https://community.cumulocity.com/u/albert.avetisyan)\
**Post date:** [June 21, 2023, 2:00pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/1 "2023-06-21T14:00:13Z")

</div>

PRINCIPAL: **1016.0.259**  
UI: **1016.0.259**

Hello

I have been trying to use the Cumulocity API but i always encounter the same problem :

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/b/1/b1a3ecbb6ef7cb3875f0725647e7a6383ddcf150.png)

{  
“error”: “security/Unauthorized”,  
“message”: “Full authentication is required to access this resource”,  
“info”: " unavailable link"  
}  
my tenant id is : env658352 and my auth is in this form : base64 encoded tenant/username:password  
i also tried base64 encoded username:password

edit : the tenant/username:password are from another user that i created because i couldn’t do it with the primary account as it is “managed through your authorization server”

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [June 21, 2023, 2:20pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/2 "2023-06-21T14:20:07Z")

</div>

What url are you accessing?

---

<div class="post-metadata">

**Author:** ![albert.avetisyan](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@albert.avetisyan](https://community.cumulocity.com/u/albert.avetisyan)\
**Post date:** [June 21, 2023, 2:26pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/3 "2023-06-21T14:26:11Z")

</div>

env658352.eu-latest.cumulocity(.com)/devicecontrol/newDeviceRequests

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [June 21, 2023, 3:05pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/4 "2023-06-21T15:05:25Z")

</div>

Can you do GET [https://env658352.eu-latest.cumulocity.com/devicecontrol/newDeviceRequests](https://env658352.eu-latest.cumulocity.com/devicecontrol/newDeviceRequests)?

---

<div class="post-metadata">

**Author:** ![albert.avetisyan](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@albert.avetisyan](https://community.cumulocity.com/u/albert.avetisyan)\
**Post date:** [June 21, 2023, 3:12pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/6 "2023-06-21T15:12:12Z")

</div>

No it still give me the same error whatever request i make

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [June 21, 2023, 3:30pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/7 "2023-06-21T15:30:54Z")

</div>

![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/0/7/07eab5f37da3dce05e02ece3690d13843250c9d6.png)

It is possible. Can you double check the credentials and url?

---

<div class="post-metadata">

**Author:** ![albert.avetisyan](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@albert.avetisyan](https://community.cumulocity.com/u/albert.avetisyan)\
**Post date:** [June 21, 2023, 3:38pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/8 "2023-06-21T15:38:12Z")

</div>

I just checked following your method and it seems like my auth is at fault, could it my base64 encoding ?

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [June 21, 2023, 3:42pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/9 "2023-06-21T15:42:20Z")

</div>

It could be. Why not just enter plain text in the Username and Password fields in Postman?

---

<div class="post-metadata">

**Author:** ![Korbinian\_Butz](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/korbinian_butz/32/10473_2.png) [@Korbinian\_Butz](https://community.cumulocity.com/u/Korbinian_Butz)\
**Post date:** [June 21, 2023, 3:52pm UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/10 "2023-06-21T15:52:19Z")

</div>

Just some notes:

- Easiest would be indeed to use Postmans User/Pass Fields
- When not using that, make sure you are using as Authentication Header “Authorization: Basic {base64 encoded tenant/user:password}”. I see you did not set the " **Basic**" in front of your base64-auth above
- Is the tenant using SSO? If yes, note that your SSO User/Pass won’t work with Postman.

---

<div class="post-metadata">

**Author:** ![albert.avetisyan](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@albert.avetisyan](https://community.cumulocity.com/u/albert.avetisyan)\
**Post date:** [June 22, 2023, 8:55am UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/11 "2023-06-22T08:55:58Z")

</div>

Hello

The cause of my problem was like you said that i didn’t put the " **Basic**" in front of my base64-auth

Thank you !

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [December 19, 2023, 8:56am UTC](https://community.cumulocity.com/t/i-always-have-the-full-authentication-is-required-to-access-this-resource-when-posting-a-request/7839/12 "2023-12-19T08:56:21Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
