<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Problem with oAuth2.0 Authentication in Web API</title><link>https://community.appian.com/discussions/f/integrations/34548/problem-with-oauth2-0-authentication-in-web-api</link><description>Hi All, 
 
 I have created a Web API. 
 I tried with 
 1. Basic Auth by providing username and password. - Worked 
 2. Using API Key - Worked 
 - Created New API Key with service account and copied API Key 
 - Created a group in my application and added</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Problem with oAuth2.0 Authentication in Web API</title><link>https://community.appian.com/thread/132426?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 17:51:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25509fd3-97d7-4135-8765-1396f257a11d</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Yes&amp;nbsp;&lt;a href="/members/sadhus2473"&gt;sadhus2473&lt;/a&gt;&amp;nbsp;&lt;br /&gt;But Best Practice suggest :&lt;br /&gt;&lt;span&gt;Create a dedicated group in Appian specifically for service accounts used with OAuth 2.0 clients. You can then assign granular permissions to this group, ensuring that service accounts have the necessary access while limiting their overall privileges.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with oAuth2.0 Authentication in Web API</title><link>https://community.appian.com/thread/132418?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 17:29:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d99d9a95-8b3b-4f24-8231-9bf757c4d62d</guid><dc:creator>sadhus2473</dc:creator><description>&lt;div class="content full threaded-reply-content user-defined-markup" data-replyid="132414" data-userid="237090" data-permalink="~/discussions/f/integrations/34548/problem-with-oauth2-0-authentication-in-web-api/132414"&gt;
&lt;div class="content"&gt;
&lt;p&gt;Is that correct way or do we have some other way to do it?&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with oAuth2.0 Authentication in Web API</title><link>https://community.appian.com/thread/132417?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 17:28:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9e366be-1d0f-4c69-98e4-4968fb7e0bdd</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Cool!&lt;br /&gt;That&amp;#39;s good to know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with oAuth2.0 Authentication in Web API</title><link>https://community.appian.com/thread/132414?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 17:27:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c47a2dd-1bc3-4947-a783-256e12ecfef8</guid><dc:creator>sadhus2473</dc:creator><description>&lt;p&gt;Hi Shubham,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found the issue. By default, service accounts are created as Basic User. If I update them as Administrator,&amp;nbsp;I&amp;#39;m getting the data.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1712078936574v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is that correct way or do we have some other way to do it?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with oAuth2.0 Authentication in Web API</title><link>https://community.appian.com/thread/132412?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 17:15:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c411e9ab-a702-44b5-a817-a3ba2e525dfe</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;It seems like you&amp;#39;ve successfully authenticated using Basic Auth and API Key but are encountering issues with OAuth2. If authentication is successful but you&amp;#39;re getting empty data, it might be a problem with authorization or how you&amp;#39;re accessing the data after authentication. Double-check your OAuth2 configuration, including scopes and permissions, to ensure the client has the necessary access to retrieve the data. Additionally, verify that the API endpoints you&amp;#39;re trying to access are correctly configured to return data for authenticated clients.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>