> Forums > Active Social > Integration and API > Verifying user has access to AS Group
Last Post 09 Nov 2011 04:40 AM by Ben Thompson. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Not Resolved
Andrew Walker
Customers
Andrew Walker
Post Count:42

--
30 Mar 2011 02:37 PM
    Building a custom module  off of AS where users will have access only if they belong to that group.

    In implementing jquery for ajax - I want to verify my user has access to the group in question - since I have to pass the group id in my $.ajax post.

    I can already verify who my user is via DNN - but I want to make sure that the user actually belongs to the group before I add items to my custom module.  I'm not seeing anything that does this in the AS API --- is there a "round about" way of achieving the desired result?

    Ideally I would think: 
    bool theUserBelongs = new Active.Modules.Social.API.GroupsAPI().CanAccessGroup(activeSocialGroupId, userId);
    Our Sites that use ActiveSocial:
    BigGameLogic.com - for the serious deer hunter (track deer movement/patterns).
    ForemostBrewing.com - for the homebrewer and winemaker
    ForemostHunting.com - for the avid hunting sportsman
    GameBirdHunts.com - for the upland game bird hunter
    Andrew Walker
    Customers
    Andrew Walker
    Post Count:42

    --
    15 Sep 2011 08:44 AM
    In case anyone needs this - I created my own stored procedure passing in @UserId and @GroupId in question

    select MemberStatus from activesocial_Groups_Members where UserId = @UserId and GroupId = @GroupId 
    Our Sites that use ActiveSocial:
    BigGameLogic.com - for the serious deer hunter (track deer movement/patterns).
    ForemostBrewing.com - for the homebrewer and winemaker
    ForemostHunting.com - for the avid hunting sportsman
    GameBirdHunts.com - for the upland game bird hunter
    Ben Thompson
    Customers
    Ben Thompson
    Post Count:230

    --
    09 Nov 2011 04:40 AM
    Hi Jon,
    I am creating a custom App that integrates with Groups. I am trying to get the GroupId to be used with my module. Can you give some direction as to the best way to do this in the API.

    Thanks
    www.itproject.com.au
    You are not authorized to post a reply.
    > Forums > Active Social > Integration and API > Verifying user has access to AS Group
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy