Home

Generating an Administrator Token

%3CLINGO-SUB%20id%3D%22lingo-sub-97058%22%20slang%3D%22en-US%22%3EGenerating%20an%20Administrator%20Token%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97058%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20administrator%20functions%20built%20into%20Yammer%20work%20well%2C%20but%20what%20if%20you%20want%20to%20perform%20an%20administrator%20function%20outside%20of%20what's%20built%20for%20you%3F%20%26nbsp%3BIf%20you%20ask%20around%2C%20you%20may%20find%20someone%20advising%20you%20to%20take%20advantage%20of%20the%20REST%20API%2C%20but%20if%20you%20don't%20know%20where%20to%26nbsp%3Bstart%2C%20then%20you've%20come%20to%20the%20right%20place.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBecause%20you%20can't%20fully%20use%20the%20REST%20API%20and%20you%20can't%20run%20any%20of%20the%20scripts%20posted%20in%20this%20community%20if%20you%20don't%20have%20a%20token.%20%26nbsp%3BThis%20token%20is%20like%20your%20username%20and%20password%2C%20and%20is%20what%20allows%20you%20to%20tell%20Yammer%20that%20the%20script%20you're%20running%20is%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGetting%20one%20of%20these%20things%20used%20to%20be%20relatively%20complicated%2C%20but%20is%20much%20simpler%20now.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStep%201%3A%20%26nbsp%3BLog%20into%20Yammer%20normally%2C%20then%20click%20this%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fclient_applications%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fclient_applications%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStep%202%3A%20%26nbsp%3BClick%20the%20big%20green%20box%2C%20Register%20a%20New%20App%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20153px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18742iA693132BABA1656D%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22RNA.JPG%22%20title%3D%22RNA.JPG%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStep%203%3A%20%26nbsp%3BFill%20in%20the%20form.%20%26nbsp%3BThe%20name%20can%20be%20whatever%20you%20want%2C%20and%20the%20organization%20and%20email%20should%20match%20what%20is%20approprate%20for%20your%20organization.%20%26nbsp%3BI%20always%20use%20Yammer%20as%20the%20redirect%20URI.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20591px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18743i77CBAA5BDB04F14A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22RNA2.JPG%22%20title%3D%22RNA2.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStep%204%3A%20%26nbsp%3BNow%20you're%20on%20the%20information%20screen%20and%20can%20go%20get%20your%20token.%20%26nbsp%3BOn%20the%20bottom%20of%20the%20screen%20is%20a%20link%20called%20%22Generate%20a%20developer%20token%20for%20this%20application%22.%20%26nbsp%3BClick%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20739px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18744iF615BC0A3DCD4B7C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22RNA3.JPG%22%20title%3D%22RNA3.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELike%20magic%2C%20your%20very%20own%20scripting%20token%20will%20now%20appear.%20%26nbsp%3BCopy%20and%20paste%20that%20into%20something%20safe%20and%20secure.%20%26nbsp%3BRemember%2C%20this%20is%20your%20username%20and%20password%20all%20rolled%20up%20into%20one%2C%20and%20if%20someone%20gets%20that%2C%20they%20can%20perform%20the%20same%20functions%20on%20your%20network%20as%20you%20can.%20%26nbsp%3BGuard%20it%20carefully.%20%26nbsp%3BAnd%20then%20use%20it%20for%20the%20scripts%20you'll%20find%20elsewhere%20in%20this%20community.%20%26nbsp%3BEnjoy!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20739px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18745iC8D2B353D451239F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22RNA4.JPG%22%20title%3D%22RNA4.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-97058%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-280431%22%20slang%3D%22en-US%22%3ERe%3A%20Generating%20an%20Administrator%20Token%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-280431%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20this%20method%2C%20but%20here%20is%20what%20happens.%20Would%20you%20know%20how%20to%20resolve%20it%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F58765i1E4C82B0151023CD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22yammer%20token.png%22%20title%3D%22yammer%20token.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETR%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-278722%22%20slang%3D%22en-US%22%3ERe%3A%20Generating%20an%20Administrator%20Token%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-278722%22%20slang%3D%22en-US%22%3E%3CP%3EActually%2C%20I%20have%20the%20same%20problem%20in%20my%20current%20environment.%26nbsp%3B%20I%20haven't%20found%20a%20way%20to%20automate%20it%2C%20but%20if%20I%20do%2C%20I'll%20share%20it%20with%20you.%26nbsp%3B%20If%20anyone%20else%20does%2C%20feel%20free%20to%20share.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETypically%2C%20however%2C%20this%20isn't%20something%20one%20would%20write%20an%20API%20to%20accomplish%2C%20because%20of%20the%20significant%20security%20implications%20of%20mishandling%20that%20token.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-275603%22%20slang%3D%22en-US%22%3ERe%3A%20Generating%20an%20Administrator%20Token%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-275603%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20is%20there%20a%20way%20to%20automate%20the%20generation%20of%26nbsp%3Bthis%20token%2C%20we%20need%20to%20generate%20a%20new%20token%20everytime%20we%20need%20to%20do%20an%20export%20to%20keep%20security%20risks%20to%20a%20minimum.%3C%2FP%3E%3CP%3Ethanks%20and%20regards%2C%3C%2FP%3E%3CP%3EVR%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-727886%22%20slang%3D%22en-US%22%3ERe%3A%20Generating%20an%20Administrator%20Token%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-727886%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20Tom%2C%3C%2FP%3E%3CP%3EStill%20facing%20the%20same%20problem%3B%20how%20to%20generate%20the%20admin%20token%20via%20a%20script%3F%3C%2FP%3E%3CP%3Ewe%20can%20encrypt%20and%20deactivate%20the%20token%20after%20each%20use%20%2C%20so%20there%20is%20less%20concern%20about%20security.%3C%2FP%3E%3CP%3Ebut%26nbsp%3B%20we%26nbsp%3B%20are%20planning%20to%20automate%20the%20export%20api%20feed%20and%20rest%20api%20feed%20%2C%20so%20we%20need%20to%20know%20how%20to%20automate%20the%20generation%20of%20yammer%20admin%20token%2C%20so%20that%20we%20can%20automate%20the%20entire%20process%20without%20manual%20intervention.%26nbsp%3B%3C%2FP%3E%3CP%3Eso%20wondering%20if%20any%20one%20has%20found%20a%20way%20to%20automatically%20generate%20the%20token.%3C%2FP%3E%3CP%3Eregards%2C%3C%2FP%3E%3CP%3EVidya%20Ranjit.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Tom Kretzmer
Regular Contributor

The administrator functions built into Yammer work well, but what if you want to perform an administrator function outside of what's built for you?  If you ask around, you may find someone advising you to take advantage of the REST API, but if you don't know where to start, then you've come to the right place.

 

Because you can't fully use the REST API and you can't run any of the scripts posted in this community if you don't have a token.  This token is like your username and password, and is what allows you to tell Yammer that the script you're running is you.

 

Getting one of these things used to be relatively complicated, but is much simpler now.  

 

Step 1:  Log into Yammer normally, then click this - https://www.yammer.com/client_applications

 

Step 2:  Click the big green box, Register a New App  RNA.JPG 

 

 

Step 3:  Fill in the form.  The name can be whatever you want, and the organization and email should match what is approprate for your organization.  I always use Yammer as the redirect URI.

RNA2.JPG

 

Step 4:  Now you're on the information screen and can go get your token.  On the bottom of the screen is a link called "Generate a developer token for this application".  Click that.

 

RNA3.JPG

 

Like magic, your very own scripting token will now appear.  Copy and paste that into something safe and secure.  Remember, this is your username and password all rolled up into one, and if someone gets that, they can perform the same functions on your network as you can.  Guard it carefully.  And then use it for the scripts you'll find elsewhere in this community.  Enjoy!

 

RNA4.JPG

 

4 Replies

Hi, is there a way to automate the generation of this token, we need to generate a new token everytime we need to do an export to keep security risks to a minimum.

thanks and regards,

VR

Actually, I have the same problem in my current environment.  I haven't found a way to automate it, but if I do, I'll share it with you.  If anyone else does, feel free to share.

 

Typically, however, this isn't something one would write an API to accomplish, because of the significant security implications of mishandling that token.

Hey,

 

I have tried this method, but here is what happens. Would you know how to resolve it ?

 

yammer token.png

 

Thanks,

 

TR

thanks Tom,

Still facing the same problem; how to generate the admin token via a script?

we can encrypt and deactivate the token after each use , so there is less concern about security.

but  we  are planning to automate the export api feed and rest api feed , so we need to know how to automate the generation of yammer admin token, so that we can automate the entire process without manual intervention. 

so wondering if any one has found a way to automatically generate the token.

regards,

Vidya Ranjit.

 

Related Conversations