콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
1984 화면

Hi guys, 

I tried to test my API in my custom module in postman, but I got the message that I am not allowed to access the records.

this is the error:
Un-authorized: You are not allowed to access 'Real Estate Property Tag' (estate.property.tag) records.

This operation is allowed for the following groups:- User types/Internal User

Contact your administrator to request access if necessary.

what I've done is:

  1. Checked User Permissions
  2. Assigned the User to the Appropriate Group
  3. Reviewed Model Security Rules

anyone knows how to solve this?


아바타
취소

While fetching information via the API, did you provide a username and password? Please check that user's permissions.

베스트 답변

Hi,
First of all you have to do the authentication, you can call the /web/session/authenticate end point for this.

Once the authentication is succeeded you will receive session_id in cookies, which you have to pass in the cookies in the further api requests.

See:   https://www.youtube.com/watch?v=wGvuRbCyytk

Thanks

아바타
취소
작성자

Hi thanks for your advice. I've followed in the video instruction and succeed in postmant but, there is no session_id in the output. instead I found cache_hashes is that simillar to session_id?.
eventually I resolved the problem

작성자 베스트 답변

where should I provide the username and the password? postman? can you guide me

아바타
취소
관련 게시물 답글 화면 활동
1
11월 15
4950
2
2월 24
1181
1
10월 23
7769
2
9월 21
10553
2
12월 19
4559