Forum Discussion

peterlu's avatar
peterlu
Champion
12 years ago
Solved

permission api

what is the api to query if a user has a certain permission, eg, "switch user"?

I know that we can use role to check. But it is not the best way.

10 Replies

  • kc's avatar
    kc
    Ace
    12 years ago

    where can I found the list of available permission types?

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    12 years ago

    Hi kc. I'm putting together a list of possible values now. I'm hoping that I'll be able to update the coreNode context object article by the end of today.

  • kc's avatar
    kc
    Ace
    12 years ago

    hi susan,

     

    thanks for the update. two of the permissions we're using are not on the list.

     

    update_community

    update_category

     

    Thanks,

    kc

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    12 years ago

    Let me check with engineering about those two. You have valid permission identifiers, but I want to be sure that those are safe to use in a custom component.

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    12 years ago

    I'll be adding those two to the list. Thanks.

  • Anonymous's avatar
    Anonymous
    Not applicable
    5 years ago

    This link is dead now

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    5 years ago

    Hi Inactive User Ian. Just updated the link.