Delete Yammer Group through REST API

Hi All,
Is there any REST API from yammer which enables us to delete Yammer groups. We would just have to pass groupid(s) to the rest api url and my yammer groups should get deleted.
I tried googling but could not find any. except these: https://www.yammer.com/api/v1/group_memberships.json?group_id=:4309911 which just deletes user from a group. Is there any rest api to delete the group itself ?
Thanks in advance.
Regards,
Subhash S.

Hi,
According to your description, you want to delete a group in Yammer using the REST API endpoint of Yammer.
As it is more relate to Yammer development, it would be more appropriate to ask for help in the corresponding forum, you will get more help and confirmed answers there:
http://community.office365.com/en-us/w/yammer/default.aspx
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Can't delete group by REST API

    I use this URL for delete a group: https://graph.windows.net/<domain>/groups/<objectId>/?api-version=1.5 (ref: https://msdn.microsoft.com/en-us/library/azure/dn151608.aspx)
    but I can't do it. I set full permission for application (I can create/update). How deleted group via REST Api?
    This is requonse:
    odata.error: 
    code: "Authorization_RequestDenied"
    message: 
    lang: "en"
    value: "Insufficient privileges to complete the operation."

    Hi,
    Are you using this link to delete the group
    https://graph.windows.net/<domain>/groups/<objectId>/?api-version=1.5
    the method states that it has used the date, not the version of API as mentioned below.
    https://graph.windows.net/mytenantdomain/groups/<objectId>?api-version=2013-04-05
    The Sample request also has the date, not the exact version of the API
    DELETE https://graph.windows.net/contoso.onmicrosoft.com/groups/bc0001a2-5b96-4073-a5be-6b80528a17ad?api-version=2013-04-05
    HTTP/1.1
    Authorization: Bearer eyJ0eX ... FWSXfwtQ
    Content-Type: application/json
    Host: graph.windows.net
    Hope this helps you.
    Girish Prajwal

  • Data Centers URL through Rest API

    Hi All,
    Below is the set of question:
    Is hitting the API https://login.eloqua.com/id is the only way to get the endpoint specific to User?
    Does the endpoint remains same every time or it changes?
    Suppose I have purchased the license. The license is valid for 10 user. Do the endpoints will differ for the 10 users?
    Awaiting your response.
    Thanks in advance.
    Regards
    Brajmohan

    Hi,
    According to your description, you want to delete a group in Yammer using the REST API endpoint of Yammer.
    As it is more relate to Yammer development, it would be more appropriate to ask for help in the corresponding forum, you will get more help and confirmed answers there:
    http://community.office365.com/en-us/w/yammer/default.aspx
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Query listitems by view through REST api

    I've created a custom view, and I want to access the list items based on this view through REST api.
    I've tried .../_api/web/lists(listguid)/view(viewguid)/items, but it seems not working.
    Is it possible, any ideas?
    Thanks,
    Laszlo

    Hi,
    Unfortunately, it is not possible to grab a list view via REST.  You can get the syntax for what you can grab for a list with REST by typing something like this into your browser and viewing the page source:
    https://domain/sites/sitename/_api/web/lists(guid'4065067c-e4b8-46d5-a433-76b27f508d1d')
    Simply view the source of this page once you have logged into your SharePoint site.  You will see all the possible href values you can use based on your list guid (obviously you'll have to change the values above to match your data). 
    What you can do with REST is to use certain parameters to filter your list (similar to how OOTB list views do).  Check out these pages with some examples of what I mean:
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx  (Scroll down to Advanced Operations where they talk about $select, $filter, etc.).
    http://msdn.microsoft.com/en-us/library/jj164022.aspx
    Hope this helps,
    ~ Katie

  • Add user to sharepoint group using REST API

    I am trying to add a user to sharepoint group with following code
    serviceUrl= Appweb + "/_api/SP.AppContextSite(@target)/web/sitegroups("+GroupId+")/users?@target='host web'";
        $.ajax({
            url: serviceUrl,
            type: "POST",
            contentType: "application/json; charset=utf-8",
            dataType: 'json',
            body: "{'__metadata': { 'type': 'SP.User' },'LoginName':'i:0#.f|membership|'+email }",
      headers: {"accept":"application/json;odata=verbose",
        "content-type": "application/json;odata=verbose",
        "X-RequestDigest":$("#__REQUESTDIGEST").val()
        async: false,
      success: function (data) {
               alert('success');
      error: function (data) {
                 alert('fail');
    The request goes to error function. Response of the request is Microsoft.SharePoint.Client.InvalidClientQueryException and message is A node of type 'EndOfInput' was read from the JSON reader when trying to read the start of an entry. A 'StartObject' node was
    expected
    I tried the sample from following link but fail it
    https://msdn.microsoft.com/en-us/library/office/dn531432.aspx

    Hi,
    Per my understanding, you might want to add an user to a SharePoint group in host web from a SharePoint Hosted App using REST API.
    Here is a working demo for your reference:
    var hostweburl;
    var appweburl;
    $(document).ready(function () {
    //Get the URI decoded URLs.
    hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
    appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl"));
    // Resources are in URLs in the form:
    // web_url/_layouts/15/resource
    var scriptbase = hostweburl + "/_layouts/15/";
    // SP.RequestExecutor.js to make cross-domain requests
    $.getScript(scriptbase + "SP.RequestExecutor.js", loadPage);
    // Utilities
    // Retrieve a query string value.
    // For production purposes you may want to use a library to handle the query string.
    function getQueryStringParameter(paramToRetrieve)
    var params = document.URL.split("?")[1].split("&");
    for (var i = 0; i < params.length; i = i + 1)
    var singleParam = params[i].split("=");
    if (singleParam[0] == paramToRetrieve) return singleParam[1];
    function addUsersInGroup() {
    var executor;
    // Initialize the RequestExecutor with the app web URL.
    executor = new SP.RequestExecutor(appweburl);
    executor.executeAsync({
    url: appweburl + "/_api/SP.AppContextSite(@target)/web/sitegroups(8)/users?@target='" + hostweburl + "'",
    method: "POST",
    contentType: "application/json; charset=utf-8",
    dataType: 'json',
    body: "{'__metadata': { 'type': 'SP.User' },'LoginName':'i:0#.f|membership|[email protected]'}",
    headers: {
    "Accept": "application/json; odata=verbose",
    "content-type": "application/json;odata=verbose",
    "X-RequestDigest":$("#__REQUESTDIGEST").val()
    success: addUsersInGroupSuccessHandler,
    error: addUsersInGroupErrorHandler
    function addUsersInGroupSuccessHandler(data)
    console.log(data);
    var jsonObject = JSON.parse(data.body);
    console.log(jsonObject);
    function addUsersInGroupErrorHandler(data)
    console.log(data);
    var jsonObject = JSON.parse(data.body);
    console.log(jsonObject);
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Pass Parameter Through REST API into PivotChart in Excel Services 2013

    Is it possible to pass a parameter through the REST API into the filter of a PivotChart and return a filtered view of the chart?  I've figured it out mechanically, and can pass the parameter in - but the chart doesn't refresh with the new filter.
    For the record, I've looked at all of the online documentation on passing parameters and you'll note those all depict passing parameters into a table - not a PivotTable.
    Curious if Excel Services 2013 has made any progress in that regard.
    Thanks in advance...
    Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinsky

    Obviously it's not working for pivot tables/charts. Just found this in the SharePoint logs:
    04/06/2014 22:21:36.01 w3wp.exe (0x0920)                      
    0x1428
    Excel Services Application     Excel Calculation Services    
    d64g Medium  
    UserOperation.Dispose: Disposing Microsoft.Office.Excel.Server.CalculationServer.Operations.RestChartPngOperation, WebMethod: ProcessRestRequest.
    09ae849c-bf78-50fd-d9b9-915fd27bf5e1
    04/06/2014 22:21:36.01 w3wp.exe (0x0920)                      
    0x1428
    Excel Services Application     Excel Calculation Services    
    ecc4 Medium  
    ExcelServiceBase.EndProcessOperation: Found an exception on the AsyncResult of an operation which has not been departed from. Exception is Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceBase+EcsFaultException:
    Cannot change cells in a PivotTable report. (Fault Detail is equal to Microsoft.Office.Excel.Server.ExcelServerMessage).
    09ae849c-bf78-50fd-d9b9-915fd27bf5e1
    Disappointing...

  • How to request multi-machine blueprint information through rest api.

    We are building a portal in front of vRealize (don't ask me why) and I need to dynamically create multi-machine json files to request catalog items.
    If I connect through the api I can request the Blueprint details but not the additional blueprints it makes use of.
    Does anyone know how to request these additional information out of the rest api catalog?
    Thx in advance.

    The following method, unlike those above, will work. It requires you to know the MIME type of the binary file you wish to upload. This example uploads a PDF document.
    uploader.cfm
    <cfset restInitApplication(expandPath("."))>
    <cfhttp url="http://localhost:8500/rest/myRestApp/myService" method="post">
        <cfhttpparam file="C:\temp\testDoc.pdf" mimetype="application/pdf" name="myFile" type="file">
    </cfhttp>
    service.cfc
    <cfcomponent rest="true" restpath="/myService">
    <cffunction name="getFile" access="remote" httpMethod="POST" returntype="string">
    <cffile action="upload" accept="application/pdf" filefield="myFile" nameconflict="overwrite" destination="C:\Users\BKBK\Desktop\testFile.pdf">
    <cfreturn "File uploaded!">
    </cffunction>
    </cfcomponent>

  • How to Send pdf from Salesforce to Echosign through REST API?

    I'm trying to send PDF generated from Visualforce page and through Apex REST I'm trying to invoke Echosign REST API. But while invoking "/transientDocument" URL, it says Unsupported content type. Any help on how to construct multipart/form-data in Salesforce?

    I'm afraid it's a bit beyond me, but why not use the ready-made Echosign for Salesforce application you can download from the app exchange?

  • Accessing Iteration Dates through REST API

    How should I go about getting the start and end dates for an iteration through the API?
    If I attempt to access the iteration directly (using the URL retrieved by /_apis/wit/classificationnodes/iterations/{parent}&$depth=2) I receive a 'Node ID is not recognized' error:
    "$id": "1",
    "innerException": null,
    "message": "TF51541: The Node ID is not recognized.",
    "typeName": "Microsoft.TeamFoundation.WorkItemTracking.Server.Metadata.WorkItemTrackingTreeNodeNotFoundException, Microsoft.TeamFoundation.WorkItemTracking.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "typeKey": "WorkItemTrackingTreeNodeNotFoundException",
    "errorCode": 0,
    "eventId": 3200
    Is there another mechanism for getting this data?

    Hi Steve,
    Thanks for your post.
    We can get the Iteration using general TFS API, it also works with VSO, please refer to the replies in this post:https://social.msdn.microsoft.com/Forums/en-US/6e6a8c5a-bb2a-4b51-9a43-df3c06448f1b/get-sprint-details-from-tfs?forum=tfsgeneral
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Assigning permission to SharePoint 2013 group using REST API

    Hi All,
    I was trying to assign permission to a group using REST but it failing with error message "Bad Request". Below is my REST code to assign Contribute permission to group with ID 95, It would great help if someone can help me to fix this.
    // Set permission on a specific group
    $.ajax({
    url: "<Site URL>/_api/web/roleassignments/addroleassignment(principalid=95, roledefid=1073741827)",
    type: "POST",
    contentType: "application/json;odata=verbose",
    headers: { "Accept": "application/json; odata=verbose","X-RequestDigest": $("#__REQUESTDIGEST").val(),"X-HTTP-Method": "POST" },
    success: function (data) {
    // Returning the results
    alert('Contribute permission set on group');
    alert("Error: " + JSON.stringify(data));
    error: function (data) {
    alert("Error: " + JSON.stringify(data));
    ~Harish

    Hi Harish,
    I have same problem and I just find solution for this error.
    You must set body/data to null value --> It's work for me  !!! :)
    See my code with RequestExecutor (I develop an SharePoint App)
    // Set the new role assignment for the group on the list.
            this.setNewRoleForGroup = function (listTitle, newRoleDefId, groupId) {
                var deferred = $.Deferred();
                //First we must call the EnsureSetup method
                JSRequest.EnsureSetup();
                var hostweburl = decodeURIComponent(JSRequest.QueryString["SPHostUrl"]);
                var appweburl = decodeURIComponent(JSRequest.QueryString["SPAppWebUrl"]);
                //Tip to have a title formated to REST call
                var arrayTitle = decodeURIComponent(listTitle).split("'");
                var restQueryUrl = appweburl + "/_api/SP.AppContextSite(@target)/web/lists/GetByTitle('" + arrayTitle.join("''") + "')/roleassignments/addroleassignment(principalid=" + groupId + ",roledefid=" + newRoleDefId + ")?@target='" + hostweburl + "'";
                var executor = new SP.RequestExecutor(appweburl);
                executor.executeAsync({
                    url: restQueryUrl,
                    body: null,
                    method: "POST",
                    headers: {
                        "Content-Type": "application/json;odata=verbose",
                        "Accept": "application/json; odata=verbose",
                        "X-HTTP-Method": "POST"
                    success: function (data, textStatus, xhr) {
                        deferred.resolve({ updated: true });
                    error: function (xhr, textStatus, errorThrown) {
                        deferred.reject(JSON.parse(xhr.body).error.message.value);
                return deferred;

  • Issue with deleting a group using Request APIs in OIM 11g R1

    Hi,
    I am facing an issue with Request Based provisioning in OIM 11g R1.
    I am currently testing a scenario where i have imported a data set for 'Modify Provisioned Resource' and am able to add a group/entitlement to an already provisioned resource by using the following code :
            RequestBeneficiaryEntityAttribute childEntityAttribute= new RequestBeneficiaryEntityAttribute();
            childEntityAttribute.setName("AD User Group Details");
            childEntityAttribute.setType(TYPE.String);
            List<RequestBeneficiaryEntityAttribute> childEntityAttributeList=new ArrayList<RequestBeneficiaryEntityAttribute>();
            RequestBeneficiaryEntityAttribute attr = new RequestBeneficiaryEntityAttribute("Group Name", <group>,                                                                       RequestBeneficiaryEntityAttribute.TYPE.String);
            childEntityAttributeList.add(attr);
            childEntityAttribute.setChildAttributes(childEntityAttributeList);
            childEntityAttribute.setAction(RequestBeneficiaryEntityAttribute.ACTION.Add);
            beneficiaryEntityAttributeList = new ArrayList<RequestBeneficiaryEntityAttribute>();   
            beneficiaryEntityAttributeList.add(childEntityAttribute);
            beneficiarytEntity.setEntityData(beneficiaryEntityAttributeList);
    This works fine for adding a group but if i try to remove a group by changing the action to Delete in the same code, the request fails. The only change made is in the following line:
    childEntityAttribute.setAction(RequestBeneficiaryEntityAttribute.ACTION.Delete);
    Could you please suggest where can this possibly be wrong.
    Thanks for your time and help

    Hi BB,
    I am trying to follow up your response.
    You are suggestng to use prepopulate adapter for to populate respource object name, that means We have to just use an sql query from obj tabke to get the resource object name. right ?? it could be like below, what should I have entity-type value here ??
    <AttributeReference name="Field1" attr-ref="act_key"
    available-in-bulk="false" type="Long" length="20" widget="ENTITY" required="true"
    entity-type="????"/>
    <PrePopulationAdapter name="prepopulateResurceObject"
    classname="my.sample.package.prepopulateResurceObject" />
    </AttributeReference>
    <AttributeReference name="Field2" attr-ref="Field2" type="String" length="256" widget="lookup-query"
    available-in-bulk="true" required="true">
    <lookupQuery lookup-query="select lkv_encoded as Value,lkv_decoded as Description from lkv lkv,lku lku
    where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.xxx.BO.Field2'
    and instr(lkv_encoded,concat('$Form data.Field1', '~'))>0" display-field="Description" save-field="Value" />
    </AttributeReference>
    Then I need think about the 'Lookup.xxx.BO.Field2' format.
    Could you please let me know if my understanding is correct?? What is the entity-type value of the first attribute reference value?
    Thanks for your all help.

  • Can we delete key member through update_project API

    Hi,
    My requirement is that if project start date is greater than system date, then during update of such projects, I have to delete exsiting key member and add new key member. I am not able to delete existing key member and also didn't find any way/ parameter which can be passed in update_project api so that it will delete existing key member. I am using project_role_tbl_type for adding/updating key members.
    If anybody have any idea, please share it with me.
    Thanks

    Is there any other public API by which we can delete the existing key member of projects. I know there is one API delete_project_party but that is not public one.

  • Delete a GROUP thru API

    Hello everyone;
    I used one of HTMLDB API: HTMLDB_UTIL.CREATE_USER_GROUP thru a table trigger to create a User groups for categorizing users and managing user privileges.
    I searched all the forum and HTMLDB document but couldn't find how to delete USER_GROUP thru API something like
    HTMLDB_UTIL.DELETE_USER_GROUP or HTMLDB_UTIL.REMOVE_USER_GROUP
    Is any way to delete or remove USER_GROUP by using API?
    Thank you.
    Shaun

    Just curious if you can delete a group through the API since this thread?
    Thanks
    Matt

  • Network Security Groups REST API

    HI,
    according to this link:
    http://azure.microsoft.com/blog/2014/11/04/network-security-groups/
    Network Security groups is currently exposed only through power shell and REST API.
    I can't find any REST API documentations.
    any idea?

    Hi,
    You are correct. There is no offical article related to Network Security Group with REST API as Network Security Group is a new feature. I will report it to the related team and hope the related articles would be published quickly. In addition, you can also
    submit your requirement in Azure feedback:
    http://feedback.azure.com/forums/34192--general-feedback
    Apprecite your patience.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Capture Image rest API deletes Virtual machine

    Hi,
    When we capture an image of a virtual machine, then it deletes the virtual machine in the azure portal itself.This is the same behavior through REST API as well.
    Is there any way we can keep the Virtual machine after a capture on the image is done through REST API?
    Thanks

    Hi,
    You could refer the following link for details on how to capture an Azure virtual machine running Windows and it clearly mentions that "When you capture an image of a generalized virtual machine, the virtual
    machine is deleted."
    http://azure.microsoft.com/en-in/documentation/articles/virtual-machines-capture-image-windows-server/
    Instead, you could try taking a snapshot of the VM using "Export-AzureVM" and "Import-AzureVM".
    You could refer the following link for details:
    http://blogs.technet.com/b/heyscriptingguy/archive/2014/01/24/create-backups-of-virtual-machines-in-windows-azure-by-using-powershell.aspx
    Also you could consider cloning your VM (https://github.com/dsdinter/Azure-VM-clone).
    Regards,
    Malar.

Maybe you are looking for

  • Using javascript to resize the window

    I've got a project that I would like to resize depending on which slide the learner is viewing. I' aware that the javascript method: window.resizeTo(width,height) can be used to resize a window. In my case I want it to be for the tall window: window.

  • PSE 11 - MacOX 10.7.5  -MORE-Printer and Profiles Not Working Correctly for first print

    As suggested by adobe support contacted Epson.   What I expected no help.  Since it works ok with PSE10, PSE 9, CS5 it could not be their problem.  However PSE 11 have changed something in the sequence of events. I then downloaded a trial version of

  • Report to see only Open GR's

    Dear frd,s, can you help me there is any Report to show only Open GR,s Thanks, sam

  • Problem in date sorting

    hi i have an array of date and i have to sort it .is it possible?how can i sort date? ok it's urgent. kamlesh solanki

  • Export versions based on folder content

    Hello I've a folder on my Mac with about 3500 pictures in it - I'd like to re-export all those pictures from Aperture - what I was wondering is whether there is a way to basically create a file list with all the pictures in that specific folder on th