<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API - getting the current user in Community Forum</title>
    <link>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/515623#M23772</link>
    <description>&lt;P&gt;Are these API calls accessing info from PowerSchools Student Information System?&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 18:00:48 GMT</pubDate>
    <dc:creator>mkrebs</dc:creator>
    <dc:date>2024-05-31T18:00:48Z</dc:date>
    <item>
      <title>API - getting the current user</title>
      <link>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/488133#M21135</link>
      <description>&lt;P&gt;Hi- I'm getting started with the Schoology API. I was able to successfully authenticate and fetch course data using 2-legged oauth, and was wondering how I can get the user's ID that the credentials belong to. I was able to get mine by logging into the website and copying it from my profile link, but there's got to be a way to do this from the API, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 00:44:53 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/488133#M21135</guid>
      <dc:creator>druge</dc:creator>
      <dc:date>2023-09-27T00:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: API - getting the current user</title>
      <link>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/488211#M21142</link>
      <description>&lt;P&gt;For development, if you are playing around and already have the user's first and last name, you could use the user search endpoint given a first and last name, and assume the first entry returned is the correct person:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"&lt;A href="https://api.schoology.com/v1/search?keywords=drugelast" target="_blank"&gt;https://api.schoology.com/v1/search?keywords=drugelast&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;%20drugefirst&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;type=user"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;There are also other calls which look more appropriate and direct (orange font), which I have not tried:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;H3&gt;Other Calls&lt;/H3&gt;&lt;P&gt;These other calls are supported, as well. Please read their description for more information.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Path&lt;/TD&gt;&lt;TD&gt;GET &lt;A href="https://api.schoology.com/v1/users/me" target="_blank"&gt;https://api.schoology.com/v1/users/me&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;TD&gt;A shortcut for GET users/{user_id} where {user_id} is the user ID of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;current API user&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;Path&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;GET &lt;A href="https://api.schoology.com/v1/app-user-info" target="_blank"&gt;https://api.schoology.com/v1/app-user-info&lt;/A&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;TD&gt;If the user has an active Schoology web session, it returns the user id for the passed OAuth tokens and the Schoology web session timestamp. Use this information to validate the given access tokens for the logged in user and to check if the user has an active Schoology web session&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;From:&amp;nbsp;&lt;A href="https://developers.schoology.com/api-documentation/rest-api-v1/user" target="_self"&gt;https://developers.schoology.com/api-documentation/rest-api-v1/user&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:57:35 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/488211#M21142</guid>
      <dc:creator>mbezaire</dc:creator>
      <dc:date>2023-09-27T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: API - getting the current user</title>
      <link>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/488378#M21156</link>
      <description>&lt;P&gt;/users/me looks like exactly what I'm looking for. not sure why that's burried so deep in the docs. thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 10:53:35 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/488378#M21156</guid>
      <dc:creator>druge</dc:creator>
      <dc:date>2023-09-28T10:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: API - getting the current user</title>
      <link>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/497070#M21996</link>
      <description>&lt;P&gt;Hey everyone, I've tried this path but I only receive an empty output. I'm also using two legged auth. Anyone know what might be happening?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 17:21:57 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/497070#M21996</guid>
      <dc:creator>JackJ30</dc:creator>
      <dc:date>2023-12-12T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: API - getting the current user</title>
      <link>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/500100#M22270</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://help.powerschool.com/t5/user/viewprofilepage/user-id/1071349"&gt;@JackJ30&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the solution shared above did not work for you and if you have already reviewed the &lt;A href="https://developers.schoology.com/" target="_blank"&gt;Schoology developer's&lt;/A&gt; guide then I recommend working with the Schoology support contacts in your school district who should be able to guide you further with this or contact the Schoology team through a support case on your behalf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ParitoshT&lt;/P&gt;
&lt;P&gt;Community Moderator&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 17:02:08 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/500100#M22270</guid>
      <dc:creator>ParitoshT</dc:creator>
      <dc:date>2024-01-18T17:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: API - getting the current user</title>
      <link>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/515623#M23772</link>
      <description>&lt;P&gt;Are these API calls accessing info from PowerSchools Student Information System?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 18:00:48 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/API-getting-the-current-user/m-p/515623#M23772</guid>
      <dc:creator>mkrebs</dc:creator>
      <dc:date>2024-05-31T18:00:48Z</dc:date>
    </item>
  </channel>
</rss>

