Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:32:40+00:00 2026-06-10T22:32:40+00:00

I have a structure I am after, but I can’t quite pin down how

  • 0

I have a structure I am after, but I can’t quite pin down how I would set it up with stackmob permissions and schemas.

-Users (userID,username,password)
I want users to be able to have friends, so I created a “relationship” for the schema called friends. It is a “one to many” relationship, associated with other users, and is indexed.

OK, so we are off to a good start…

Now I want a new schema

-Objects

Here is where it gets tricky…

I want logged in users to be able to create objects. I want the owner of the object and the owners friends to be able to read the object. I want the owner to be able to update the object, and the owner to delete.

C – owner (simple, set to owner)

R – owner AND friends (how?)

U – owner(simple, set to owner)

D – owner(simple, set to owner)

How do I set the read permissions so that the owners friends can read?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:32:42+00:00Added an answer on June 10, 2026 at 10:32 pm

    Currently you can’t set permissions for the owner as well as a relationship. You can only choose one or the other. The workaround is to add the owner to the list of friends, and then set read permissions to the friends relationship.

    More information on allowing permissions for relationships can be found in StackMob’s documentation: https://www.stackmob.com/devcenter/docs/Access-Controls:-Schema-Permissions#a-related_users_on_the_sm_owner_instance

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried searching through related answers but can't quite find something that is
I have the following directory structure : /script/x.js /includes/x.txt /1/2/index.html After hooking a webpage
I have folder structure and I would like to create JSON objects based on
I have a structure called log that has 13 chars in it. after doing
Related but not quite what I am looking for merge-two-branches-what-direction. Situation: I have inherited
i have a structure malloc()'d, and after using them, i want to free() it,
I know this should be fairly easy but I can't quite figure it out
I have been searching all night for an answer to this but can't seem
I have a following structered DOM result, getting after a POST event: <root> <config>
I have structure like this. <ul class=gallerylist> <li> <image ...> <input ...> </li> <li>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.