# Allow a specific user to access their data in django backend

**URL:** <https://community.auth0.com/t/allow-a-specific-user-to-access-their-data-in-django-backend/117374>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-react\
**Created:** [September 27, 2023, 9:58am UTC](https://community.auth0.com/t/allow-a-specific-user-to-access-their-data-in-django-backend/117374 "2023-09-27T09:58:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuelmorganstudent](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/samuelmorganstudent/32/51003_2.png) [@samuelmorganstudent](https://community.auth0.com/u/samuelmorganstudent)\
**Post date:** [September 27, 2023, 9:58am UTC](https://community.auth0.com/t/allow-a-specific-user-to-access-their-data-in-django-backend/117374/1 "2023-09-27T09:58:20Z")

</div>

I dont suppose you know how i am suppose to sync the users between the react front end and my django back end so a specific user can access their data in the back end etc

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 28, 2023, 10:21pm UTC](https://community.auth0.com/t/allow-a-specific-user-to-access-their-data-in-django-backend/117374/3 "2023-09-28T22:21:05Z")

</div>

Hey again @samuelmorganstudent !

Can you elaborate what you mean by sync users? Which data are you trying to allow users to access?

---

<div class="post-metadata">

**Author:** ![slmcopywrite](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/slmcopywrite/32/51237_2.png) [@slmcopywrite](https://community.auth0.com/u/slmcopywrite)\
**Post date:** [September 28, 2023, 11:46pm UTC](https://community.auth0.com/t/allow-a-specific-user-to-access-their-data-in-django-backend/117374/4 "2023-09-28T23:46:10Z")

</div>

I have seemingly made a second account by accident but,

Say in the front end react app the user logs in,

How then do i make api call ls which contain a refresh token and recieve data from the back end

Examples include

Tasks  
Contacts

From api/tasks/\* etc

Where there is authentication in place?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 29, 2023, 6:27pm UTC](https://community.auth0.com/t/allow-a-specific-user-to-access-their-data-in-django-backend/117374/5 "2023-09-29T18:27:08Z")

</div>

Hey @slmcopywrite @samuelmorganstudent !

> [@slmcopywrite](#):
>
> How then do i make api call ls which contain a refresh token and recieve data from the back end
> 
> Examples include
> 
> Tasks  
> Contacts
> 
> From api/tasks/\* etc
> 
> Where there is authentication in place?

Your Django API will perform authorize - At a high level, your API will validate the access token and then optionally check any required permissions. This is outlined in steps 3 and 4 here:

[https://auth0.com/docs/quickstart/backend/django/interactive#create-the-jwt-validator](https://auth0.com/docs/quickstart/backend/django/interactive#create-the-jwt-validator)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 22, 2023, 11:50pm UTC](https://community.auth0.com/t/allow-a-specific-user-to-access-their-data-in-django-backend/117374/6 "2023-12-22T23:50:32Z")

</div>

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